aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-08 03:45:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-08 03:45:17 +0200
commitf46185c289baf8bf98e8970fb0cbb5f6f56c7837 (patch)
tree512bfa22042745b8f8346746c17d4fe93142921b
parent3183c38aaabc6c8a1f9b8b8495a91d9b37d7b9e6 (diff)
downloadffmpeg-f46185c289baf8bf98e8970fb0cbb5f6f56c7837.tar.gz
mp3demux: fix off by 1 error
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mp3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index edfee164b4..8d92aec96e 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -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;