Commit f46185c2 authored by Michael Niedermayer's avatar Michael Niedermayer

mp3demux: fix off by 1 error

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3183c38a
......@@ -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;
......
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