From c9614bb22c98c513c010e1e14b12349a8cc74d8c Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Fri, 3 Jun 2011 15:37:44 +0200
Subject: [PATCH] wav: update size check for ds64

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
---
 libavformat/wav.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/wav.c b/libavformat/wav.c
index 34b957121ec..5c4b7d3a6b1 100644
--- a/libavformat/wav.c
+++ b/libavformat/wav.c
@@ -323,7 +323,7 @@ static int wav_read_header(AVFormatContext *s,
         if (avio_rl32(pb) != MKTAG('d', 's', '6', '4'))
             return -1;
         size = avio_rl32(pb);
-        if (size < 16)
+        if (size < 24)
             return -1;
         avio_rl64(pb); /* RIFF size */
         data_size = avio_rl64(pb);
-- 
GitLab