From 79922d7237aba2b8c6abbd2e06a0c08e4f498ad4 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 16 Oct 2012 10:33:52 +0200 Subject: [PATCH] wav: do not fail on empty INFO tags Fixes Bug 379 CC: libav-stable@libav.org --- libavformat/wavdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index bc5288734e..9e48531fc8 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; }