avformat/wavdec: make fact chunk parsing for w64 more robust
authorPaul B Mahol <onemda@gmail.com>
Wed, 10 Jan 2018 14:51:27 +0000 (15:51 +0100)
committerPaul B Mahol <onemda@gmail.com>
Wed, 10 Jan 2018 14:54:15 +0000 (15:54 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/wavdec.c

index b016185..e280be4 100644 (file)
@@ -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;