mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
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);
|
||||
if (samples > 0)
|
||||
st->duration = samples;
|
||||
avio_skip(pb, FFALIGN(size, INT64_C(8)) - 32);
|
||||
} else if (!memcmp(guid, ff_w64_guid_data, 16)) {
|
||||
wav->data_end = avio_tell(pb) + size - 24;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user