From 3e36dc8626f4721ea749286dae40169ee5cb7d04 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 3 Sep 2013 01:03:10 +0000 Subject: w64dec: fix end position of summarylist guid Noticed-by: James Almer Signed-off-by: Paul B Mahol --- libavformat/wavdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') 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++) { -- cgit v1.1