[FFmpeg-cvslog] w64dec: fix end position of summarylist guid
Paul B Mahol
git at videolan.org
Tue Sep 3 03:06:20 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Sep 3 01:03:10 2013 +0000| [3e36dc8626f4721ea749286dae40169ee5cb7d04] | committer: Paul B Mahol
w64dec: fix end position of summarylist guid
Noticed-by: James Almer
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e36dc8626f4721ea749286dae40169ee5cb7d04
---
libavformat/wavdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index 0dee7f3..9a01705 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -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++) {
More information about the ffmpeg-cvslog
mailing list