wav: do not fail on empty INFO tags

Fixes Bug 379

CC: libav-stable@libav.org
This commit is contained in:
Anton Khirnov 2012-10-16 10:33:52 +02:00
parent 31c54711cc
commit 79922d7237
1 changed files with 1 additions and 1 deletions

View File

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