Commit 79922d72 authored by Anton Khirnov's avatar Anton Khirnov

wav: do not fail on empty INFO tags

Fixes Bug 379

CC: libav-stable@libav.org
parent 31c54711
......@@ -288,7 +288,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment