summaryrefslogtreecommitdiff
path: root/gst/aiff
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@collabora.com>2013-08-07 10:14:20 +0100
committerTim-Philipp Müller <tim@centricular.net>2013-08-12 16:12:51 +0100
commit0d4c2f42e9ba8810f6fc5e83c15c1980558239d0 (patch)
tree1c40c628d6f928299687948053db50fcb838b1a7 /gst/aiff
parent28609ca93c1fc0e536071f2ebd46b1cae41a7d9b (diff)
downloadgstreamer-plugins-bad-0d4c2f42e9ba8810f6fc5e83c15c1980558239d0.tar.gz
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
Diffstat (limited to 'gst/aiff')
-rw-r--r--gst/aiff/aiffparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/aiff/aiffparse.c b/gst/aiff/aiffparse.c
index a19097453..9549caedf 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 */