matroskademux: implement keyframe search also without cluster prev size
authorTim-Philipp Müller <tim@centricular.com>
Wed, 15 Aug 2018 11:53:34 +0000 (12:53 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 27 Aug 2018 21:01:21 +0000 (23:01 +0200)
commit9d6621a30dad77b69afd24e6b25792a2dcf78da9
tree2beaf46a93d36b689d112896750dbbfdc298e17d
parent2d6efbbae20a2f53bed19eb76643b45ee4a8756a
matroskademux: implement keyframe search also without cluster prev size

If we have cluster prev size (GStreamer muxer will write it by default),
we can go back to the previous cluster efficiently, but if we don't then
just search backwards until we find a cluster ebml identifier, like we
do when searching for clusters in the bisection loop.
gst/matroska/matroska-demux.c