changeset 5258:98cdc18246fe libavformat

wav: return av_get_packet errors unchanged.
author reimar
date Fri, 02 Oct 2009 07:22:44 +0000
parents 7843c502822b
children 1c4c83a0fd96
files wav.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/wav.c	Fri Oct 02 07:05:52 2009 +0000
+++ b/wav.c	Fri Oct 02 07:22:44 2009 +0000
@@ -268,8 +268,8 @@
     }
     size = FFMIN(size, left);
     ret  = av_get_packet(s->pb, pkt, size);
-    if (ret <= 0)
-        return AVERROR(EIO);
+    if (ret < 0)
+        return ret;
     pkt->stream_index = 0;
 
     return ret;