diff --git a/libavformat/wav.c b/libavformat/wav.c
index 34b957121ecd881ee948d04af03c6f8d0b0f5bff..5c4b7d3a6b146b72c8bc852dd6a2b2cec76a93be 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);