You've already forked FFmpeg
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user