Commit 16ba6a8a authored by Paul B Mahol's avatar Paul B Mahol

avformat/wavdec: make fact chunk parsing for w64 more robust

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 32f85056
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment