[FFmpeg-cvslog] avformat/wavdec: make fact chunk parsing for w64 more robust
Paul B Mahol
git at videolan.org
Wed Jan 10 16:55:20 EET 2018
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Jan 10 15:51:27 2018 +0100| [16ba6a8ad14183d2f8947e58a8cb9bae519bc430] | committer: Paul B Mahol
avformat/wavdec: make fact chunk parsing for w64 more robust
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=16ba6a8ad14183d2f8947e58a8cb9bae519bc430
---
libavformat/wavdec.c | 1 +
1 file changed, 1 insertion(+)
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;
More information about the ffmpeg-cvslog
mailing list