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

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


ffmpeg | branch: release/2.0 | Paul B Mahol <onemda at gmail.com> | Tue Sep  3 01:03:10 2013 +0000| [6158eec53f98c04e4194ff5a46566259ed9e66f4] | 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=6158eec53f98c04e4194ff5a46566259ed9e66f4
---

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

diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index d25ec5b..23c3b9e 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++) {



More information about the ffmpeg-cvslog mailing list