matroskadec: matroska_read_seek after after EBML_STOP leads to failure.
authorJohn Stebbins <stebbins@jetheaddev.com>
Fri, 1 Jul 2011 15:57:42 +0000 (08:57 -0700)
committerReinhard Tartler <siretart@tauware.de>
Sat, 16 Jul 2011 11:49:34 +0000 (13:49 +0200)
commitc29c609e0f4bf3fea29104c689c11f7dda499135
treec0d584152e6335ee2687f3caf1851f0f19f20bdd
parent9459390f29ec6df63ff1878f13b7b4343811948a
matroskadec: matroska_read_seek after after EBML_STOP leads to failure.

EBML_STOP leaves matroska->current_id set. Then matroska_read_seek changes
the stream position without resetting current_id.  The next
matroska_parse_cluster  fails due to calculation of incorrect pos.  So clear
current_id when avio_seek happens in matroska_read_seek.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit cdc2c1c57616956d975c57b4b69eb73865f513f5)
libavformat/matroskadec.c