matroskademux: Fix cluster searching if we search multiple times in one chunk
authorSebastian Dröge <sebastian@centricular.com>
Tue, 22 Nov 2016 18:24:59 +0000 (20:24 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 22 Nov 2016 18:24:59 +0000 (20:24 +0200)
commit5d4c71d76e553d40f22e25bf7bad81b77ceb7ac5
tree932704cc716c746396e9bf1b37dd159b16992d4a
parentc0da05df383b5d6b2e018069b4398be8c3d4f121
matroskademux: Fix cluster searching if we search multiple times in one chunk

After finding a cluster id in the byte reader, we skip ahead the reader
position by one further byte to be able to continue searching from there
inside the same chunk if the cluster candidate was a false positive.

We have to accomodate for that additional byte when resuming the search,
otherwise all following pulls are off-by-one for every resume and we run
into an assertion.
gst/matroska/matroska-demux.c