w64dec: fix end position of summarylist guid
authorPaul B Mahol <onemda@gmail.com>
Tue, 3 Sep 2013 01:03:10 +0000 (01:03 +0000)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 5 Sep 2013 20:49:28 +0000 (22:49 +0200)
Noticed-by: James Almer
Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit 3e36dc8626f4721ea749286dae40169ee5cb7d04)

libavformat/wavdec.c

index d25ec5b..23c3b9e 100644 (file)
@@ -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++) {