mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
mp3demux: fix off by 1 error
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3183c38aaa
commit
f46185c289
@ -183,7 +183,7 @@ static int mp3_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
return AVERROR_EOF;
|
||||
}
|
||||
|
||||
if (ret > ID3v1_TAG_SIZE &&
|
||||
if (ret >= ID3v1_TAG_SIZE &&
|
||||
memcmp(&pkt->data[ret - ID3v1_TAG_SIZE], "TAG", 3) == 0)
|
||||
ret -= ID3v1_TAG_SIZE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user