wav: do not fail on empty INFO tags
Fixes Bug 379 CC: libav-stable@libav.org
This commit is contained in:
parent
2051adbfa0
commit
15c2e8027f
@ -469,7 +469,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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user