mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/wavdec: make fact chunk parsing for w64 more robust
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
32f85056b3
commit
16ba6a8ad1
|
@ -822,6 +822,7 @@ static int w64_read_header(AVFormatContext *s)
|
||||||
samples = avio_rl64(pb);
|
samples = avio_rl64(pb);
|
||||||
if (samples > 0)
|
if (samples > 0)
|
||||||
st->duration = samples;
|
st->duration = samples;
|
||||||
|
avio_skip(pb, FFALIGN(size, INT64_C(8)) - 32);
|
||||||
} else if (!memcmp(guid, ff_w64_guid_data, 16)) {
|
} else if (!memcmp(guid, ff_w64_guid_data, 16)) {
|
||||||
wav->data_end = avio_tell(pb) + size - 24;
|
wav->data_end = avio_tell(pb) + size - 24;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue