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; }