aiffparse: fix data start offset calculation not counting COMM size
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Sun, 2 Feb 2014 13:50:53 +0000 (13:50 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Sun, 2 Feb 2014 14:56:28 +0000 (14:56 +0000)
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

index eaa1b819e985db29d5154aff0b3043c218cfbd44..2c90ed50f99fbe067301ad766ead8e750ced4494 100644 (file)
@@ -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)