diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-21 00:51:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-21 00:51:53 +0200 |
commit | c83442b0571370b946d3f8bb85c46879d62ab10a (patch) | |
tree | 4a3c2a00bde901d83c82575699ba49f5bd2f72d4 /libavformat | |
parent | 743e1df5c27b0e75567938812bfedc7436c64f8b (diff) | |
download | ffmpeg-c83442b0571370b946d3f8bb85c46879d62ab10a.tar.gz |
mp3demux: pass on error code on packet read.
Reported-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mp3dec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index f993f2a775..7fe7df2609 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -174,7 +174,9 @@ static int mp3_read_packet(AVFormatContext *s, AVPacket *pkt) pkt->stream_index = 0; if (ret <= 0) { - return AVERROR(EIO); + if(ret<0) + return ret; + return AVERROR_EOF; } if (ret > ID3v1_TAG_SIZE && |