From 15c2e8027f4827018608badb1bff1294af1810e4 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/wav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/wav.c b/libavformat/wav.c index 47cb5f8040..b873166b10 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; }