From 0c01e9812ac056c956f34a5d9ec7783fe46d2e19 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Sun, 2 Feb 2014 13:50:53 +0000 Subject: 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. --- gst/aiff/aiffparse.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gst/aiff') 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) -- cgit v1.2.1