matroska: redo seekhead handling
authorwm4 <nfxjfg@googlemail.com>
Mon, 9 Feb 2015 19:39:00 +0000 (20:39 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 12 Feb 2015 12:51:41 +0000 (13:51 +0100)
commitcac2295b21519d5a5320fe0787b5fd2b65eb1f8c
treeeb05349f96d5be9b6036125aaabe54349b326cb1
parenta5c9befbf433fc63aef9dca598f762339f3a19f3
matroska: redo seekhead handling

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.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/matroskadec.c