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:49:28 +0200
commit6158eec53f98c04e4194ff5a46566259ed9e66f4 (patch)
tree050120f28f01a6302d291a1662cd6d063b6459bb
parent6c0fef57628229413ea5d808c0833747737fe898 (diff)
downloadffmpeg-6158eec53f98c04e4194ff5a46566259ed9e66f4.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 d25ec5b333..23c3b9e555 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -671,7 +671,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++) {