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
This commit is contained in:
Matthieu Bouron 2013-08-07 10:14:20 +01:00 committed by Tim-Philipp Müller
parent 28609ca93c
commit 0d4c2f42e9

View file

@ -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 */