summaryrefslogtreecommitdiff
path: root/libavformat/wavdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-01-10 15:51:27 +0100
committerPaul B Mahol <onemda@gmail.com>2018-01-10 15:54:15 +0100
commit16ba6a8ad14183d2f8947e58a8cb9bae519bc430 (patch)
tree4ca2ae140ffaadfd193b26761e895e7802930b3a /libavformat/wavdec.c
parent32f85056b3eae97ddd149d9312b48449f22cff51 (diff)
avformat/wavdec: make fact chunk parsing for w64 more robust
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/wavdec.c')
-rw-r--r--libavformat/wavdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index b016185a1b..e280be4d44 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -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;