summaryrefslogtreecommitdiff
path: root/gst/aiff
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:35:18 +0000
commit0c01e9812ac056c956f34a5d9ec7783fe46d2e19 (patch)
treeab0b0c14a60e11839b5a4d62621a0a85c8de0914 /gst/aiff
parent20b902fcfa930b0a5a0ec829f8376911e9ebc672 (diff)
downloadgstreamer-plugins-bad-0c01e9812ac056c956f34a5d9ec7783fe46d2e19.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.
Diffstat (limited to 'gst/aiff')
-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 1e987bfa7..74da1dbba 100644
--- a/gst/aiff/aiffparse.c
+++ b/gst/aiff/aiffparse.c
@@ -895,6 +895,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)