wavparse: Fix parsing of adtl chunks
authorSebastian Dröge <sebastian@centricular.com>
Fri, 12 Sep 2014 12:06:50 +0000 (15:06 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 12 Sep 2014 12:08:23 +0000 (15:08 +0300)
commita9d7c1d95e2e2182a7a91530ae0d85aed2972d8f
tree565867bd96c96522e5ab58804ba694d8f6fa9b1a
parent66810a32f6bfe051cf86f063cc0bfc60f53ede1c
wavparse: Fix parsing of adtl chunks

We have to skip 12 bytes of data for the chunk, and the data size
passed to the sub-chunk parsing functions should have 4 bytes less
than the data size.

Also when parsing the sub-chunks, check if we actually have enough
data to read instead of just crashing.

https://bugzilla.gnome.org/show_bug.cgi?id=736266
gst/wavparse/gstwavparse.c