aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-09-03 01:03:10 +0000
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-09-05 22:55:25 +0200
commit3c523bdda84f8d2036b017fc82a428f064e4d1c0 (patch)
treee8e86ffc819c921ae87d62f809797dd4c17e19df
parentece54c7085dc9cd945354e9985e480ea187b8be0 (diff)
downloadffmpeg-3c523bdda84f8d2036b017fc82a428f064e4d1c0.tar.gz
w64dec: fix end position of summarylist guid
Noticed-by: James Almer Signed-off-by: Paul B Mahol <onemda@gmail.com> (cherry picked from commit 3e36dc8626f4721ea749286dae40169ee5cb7d04)
-rw-r--r--libavformat/wavdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index 832dfde55c..87d369912b 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -629,7 +629,7 @@ static int w64_read_header(AVFormatContext *s)
uint32_t count, chunk_size, i;
start = avio_tell(pb);
- end = start + size;
+ end = start + FFALIGN(size, INT64_C(8)) - 24;
count = avio_rl32(pb);
for (i = 0; i < count; i++) {