1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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

View File

@@ -288,7 +288,7 @@ static int wav_read_header(AVFormatContext *s)
break; break;
case MKTAG('L', 'I', 'S', 'T'): case MKTAG('L', 'I', 'S', 'T'):
list_type = avio_rl32(pb); list_type = avio_rl32(pb);
if (size <= 4) { if (size < 4) {
av_log(s, AV_LOG_ERROR, "too short LIST"); av_log(s, AV_LOG_ERROR, "too short LIST");
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }