avformat/matroskadec: Use proper levels after discontínuity
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 16 May 2019 22:30:03 +0000 (00:30 +0200)
committerJames Almer <jamrial@gmail.com>
Tue, 16 Jul 2019 19:16:58 +0000 (16:16 -0300)
commit8a286e745d0effe23c69baef5882917c2ea32c30
treedaac19b5095ca330df888470ddba82fb7124defb
parent310f326b4354d7353850e00393aeecada3c3c2c0
avformat/matroskadec: Use proper levels after discont√≠nuity

The earlier code set the level to zero upon seeking and after a
discontinuity although in both cases parsing (re)starts at a level 1
element.

Also set the segment's length to unkown if an error occured in order not
to drop any valid data that happens to be beyond the designated end of
the segment.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/matroskadec.c