Commit c83442b0 authored by Michael Niedermayer's avatar Michael Niedermayer

mp3demux: pass on error code on packet read.

Reported-by: Tanami, Ohad
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 743e1df5
......@@ -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 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment