[FFmpeg-devel] [PATCH]Accept 4byte LIST tags in wav

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Dec 14 10:38:24 CET 2011


Hi!

Attached patch fixes ticket #745.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/wav.c b/libavformat/wav.c
index 87d97b4..9d4b070 100644
--- a/libavformat/wav.c
+++ b/libavformat/wav.c
@@ -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;
             }


More information about the ffmpeg-devel mailing list