[FFmpeg-cvslog] wav: do not fail on empty INFO tags

Anton Khirnov git at videolan.org
Thu Oct 25 16:38:06 CEST 2012


ffmpeg | branch: release/0.10 | Anton Khirnov <anton at khirnov.net> | Tue Oct 16 10:33:52 2012 +0200| [15c2e8027f4827018608badb1bff1294af1810e4] | committer: Reinhard Tartler

wav: do not fail on empty INFO tags

Fixes Bug 379

CC: libav-stable at libav.org

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

 libavformat/wav.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/wav.c b/libavformat/wav.c
index 47cb5f8..b873166 100644
--- a/libavformat/wav.c
+++ b/libavformat/wav.c
@@ -469,7 +469,7 @@ static int wav_read_header(AVFormatContext *s,
             break;
         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