]> git.sesse.net Git - ffmpeg/commitdiff
Do not reject LIST tags in wav with size 4.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 14 Dec 2011 14:09:30 +0000 (15:09 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 14 Dec 2011 14:09:30 +0000 (15:09 +0100)
Fixes ticket #745.

libavformat/wav.c

index 87d97b4c0c6292b725fba936a00dfb912a57a42e..9d4b0708b83cca6f299c175da3e8300050878c60 100644 (file)
@@ -507,7 +507,7 @@ static int wav_read_header(AVFormatContext *s,
             goto break_loop;
         case MKTAG('L', 'I', 'S', 'T'):
             list_type = avio_rl32(pb);
-            if (size <= 4) {
+            if (size < 4) {
                 av_log(s, AV_LOG_ERROR, "too short LIST");
                 return AVERROR_INVALIDDATA;
             }