diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index e00f01d0c9..386d8827ec 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -365,7 +365,7 @@ static void read_uslt(AVFormatContext *s, AVIOContext *pb, int taglen, int encoding; int ok = 0; - if (taglen < 1) + if (taglen < 4) goto error; encoding = avio_r8(pb);