[FFmpeg-cvslog] w64dec: fix end position of summarylist guid

Paul B Mahol git at videolan.org
Thu Sep 5 23:12:53 CEST 2013


ffmpeg | branch: release/1.2 | Paul B Mahol <onemda at gmail.com> | Tue Sep  3 01:03:10 2013 +0000| [3c523bdda84f8d2036b017fc82a428f064e4d1c0] | committer: Carl Eugen Hoyos

w64dec: fix end position of summarylist guid

Noticed-by: James Almer

Signed-off-by: Paul B Mahol <onemda at gmail.com>
(cherry picked from commit 3e36dc8626f4721ea749286dae40169ee5cb7d04)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3c523bdda84f8d2036b017fc82a428f064e4d1c0
---

 libavformat/wavdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index 832dfde..87d3699 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++) {



More information about the ffmpeg-cvslog mailing list