From 0d4c2f42e9ba8810f6fc5e83c15c1980558239d0 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Wed, 7 Aug 2013 10:14:20 +0100 Subject: [PATCH] aiffparse: fix SSND data size AIFF chunk size does not include the chunk header size (8 bytes), so the SSND data size is equal to the chunk size minus the SSND header size (8 bytes). https://bugzilla.gnome.org/show_bug.cgi?id=705675 --- gst/aiff/aiffparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/aiff/aiffparse.c b/gst/aiff/aiffparse.c index a190974539..9549caedfb 100644 --- a/gst/aiff/aiffparse.c +++ b/gst/aiff/aiffparse.c @@ -923,7 +923,7 @@ gst_aiff_parse_stream_headers (GstAiffParse * aiff) /* 8 byte chunk header, 8 byte SSND header */ aiff->offset += 16; - datasize = size - 16; + datasize = size - 8; aiff->datastart = aiff->offset + aiff->ssnd_offset; /* file might be truncated */