diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index f007a3c5d7..89c0e63adf 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -127,7 +127,7 @@ static void read_ttag(AVFormatContext *s, int taglen, const char *key) break; case 3: /* UTF-8 */ - len = FFMIN(taglen, dstlen - 1); + len = FFMIN(taglen, dstlen); get_buffer(s->pb, dst, len); dst[len] = 0; break;