[libav-stable] wav: do not fail on empty INFO tags

Anton Khirnov git at libav.org
Tue Oct 16 18:58:30 CEST 2012


Module: libav
Branch: master
Commit: 79922d7237aba2b8c6abbd2e06a0c08e4f498ad4

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Tue Oct 16 10:33:52 2012 +0200

wav: do not fail on empty INFO tags

Fixes Bug 379

CC: libav-stable at libav.org

---

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

diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index bc52887..9e48531 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -288,7 +288,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 libav-stable mailing list