summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-02-02 13:50:53 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2014-02-02 14:56:28 +0000
commitdbab37eb1fc9de66cb521d480d13453ec8b54eec (patch)
tree00e9c587085fb8562078975cf3ee8b0e58db9077
parent17eeb265f3a823f9118e1888a952a12025877ba4 (diff)
downloadgstreamer-plugins-bad-dbab37eb1fc9de66cb521d480d13453ec8b54eec.tar.gz
aiffparse: fix data start offset calculation not counting COMM size
In particular, this fixes seeking back to the start reading data out of sync with sample start granularity, yielding swapped channels.
-rw-r--r--gst/aiff/aiffparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/aiff/aiffparse.c b/gst/aiff/aiffparse.c
index eaa1b819e..2c90ed50f 100644
--- a/gst/aiff/aiffparse.c
+++ b/gst/aiff/aiffparse.c
@@ -850,6 +850,7 @@ gst_aiff_parse_stream_headers (GstAiffParse * aiff)
aiff->offset += 8;
buf = gst_adapter_take_buffer (aiff->adapter, size);
+ aiff->offset += size;
} else {
if ((res = gst_aiff_parse_read_chunk (aiff,
&aiff->offset, &tag, &buf)) != GST_FLOW_OK)