[FFmpeg-cvslog] Do not reject LIST tags in wav with size 4.

Carl Eugen Hoyos git at videolan.org
Wed Dec 14 15:17:08 CET 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Wed Dec 14 15:09:30 2011 +0100| [a8e93ce4cb74dc26153bdccfbe8a487674e583a6] | committer: Carl Eugen Hoyos

Do not reject LIST tags in wav with size 4.

Fixes ticket #745.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a8e93ce4cb74dc26153bdccfbe8a487674e583a6
---

 libavformat/wav.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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-cvslog mailing list