From e581b6288f7c8c356593842c172cf867ca4177d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Fri, 2 Oct 2009 07:22:44 +0000 Subject: [PATCH] wav: return av_get_packet errors unchanged. Originally committed as revision 20142 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/wav.c | 4 ++-- 1 file 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;