matroska: redo seekhead handling

Multimedia / FFmpeg - wm4 [googlemail.com] - 12 February 2015 06:51 UTC

In particular, this reads chained seekheads. This makes seeking faster in files which have the index indirectly linked through 2 seekheads.

As a side-effect, this warns when reading level-1 (toplevel) elements multiple times (other than seekheads, clusters, and void/crc). Such elements are not valid and likely break everything.

cac2295 matroska: redo seekhead handling
libavformat/matroskadec.c | 125 +++++++++++++++++++++++++++++++--------------
1 file changed, 88 insertions(+), 37 deletions(-)

  • Share