OSDN Git Service

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)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 1 Jul 2011 15:59:26 +0000 (08:59 -0700)
commitcdc2c1c57616956d975c57b4b69eb73865f513f5
treeb7a2142d047fb1e8a36f28c8d60de2c131977b6a
parent134557f3a47697a7b5e5da2bd7e5a4b8f8d56b1c
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>
libavformat/matroskadec.c