mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
mp3demux: pass on error code on packet read.
Reported-by: Tanami, Ohad Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
743e1df5c2
commit
c83442b057
@ -174,7 +174,9 @@ static int mp3_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
|
|
||||||
pkt->stream_index = 0;
|
pkt->stream_index = 0;
|
||||||
if (ret <= 0) {
|
if (ret <= 0) {
|
||||||
return AVERROR(EIO);
|
if(ret<0)
|
||||||
|
return ret;
|
||||||
|
return AVERROR_EOF;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret > ID3v1_TAG_SIZE &&
|
if (ret > ID3v1_TAG_SIZE &&
|
||||||
|
Loading…
Reference in New Issue
Block a user