aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-02 07:22:44 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-02 07:22:44 +0000
commite581b6288f7c8c356593842c172cf867ca4177d6 (patch)
tree7124c45ef10767cc9ace8f30d6caf336cf1c1a6d
parent4bd7cb8be2d284fe4ba06254c54492e5352a6b9c (diff)
downloadffmpeg-e581b6288f7c8c356593842c172cf867ca4177d6.tar.gz
wav: return av_get_packet errors unchanged.
Originally committed as revision 20142 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/wav.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c
index 9487fc3e7a..e1ad08ea9a 100644
--- a/libavformat/wav.c
+++ b/libavformat/wav.c
@@ -268,8 +268,8 @@ static int wav_read_packet(AVFormatContext *s,
}
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;