From a8e93ce4cb74dc26153bdccfbe8a487674e583a6 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 14 Dec 2011 15:09:30 +0100 Subject: [PATCH] Do not reject LIST tags in wav with size 4. Fixes ticket #745. --- libavformat/wav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/wav.c b/libavformat/wav.c index 87d97b4c0c..9d4b0708b8 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; }