w64dec: fix end position of summarylist guid
authorPaul B Mahol <onemda@gmail.com>
Tue, 3 Sep 2013 01:03:10 +0000 (01:03 +0000)
committerPaul B Mahol <onemda@gmail.com>
Tue, 3 Sep 2013 01:03:10 +0000 (01:03 +0000)
Noticed-by: James Almer
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/wavdec.c

index 0dee7f3..9a01705 100644 (file)
@@ -674,7 +674,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++) {