From 3ad06dd7d2fb381670a741c769401501c10aacc8 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Thu, 31 Dec 2009 08:08:50 +0200 Subject: [PATCH] demux_mkv: remove useless code Remove leftover code that no longer did anything useful after earlier changes. --- libmpdemux/demux_mkv.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/libmpdemux/demux_mkv.c b/libmpdemux/demux_mkv.c index 0cf2505965..b5386f6e29 100644 --- a/libmpdemux/demux_mkv.c +++ b/libmpdemux/demux_mkv.c @@ -2069,25 +2069,11 @@ static int demux_mkv_open(demuxer_t *demuxer) cont = demux_mkv_read_attachments(demuxer); break; - case MATROSKA_ID_CLUSTER:; - int p, l; + case MATROSKA_ID_CLUSTER: mp_msg(MSGT_DEMUX, MSGL_V, "[mkv] |+ found cluster, headers are " "parsed completely :)\n"); - /* get the first cluster timecode */ - p = stream_tell(s); - l = ebml_read_length(s, NULL); - while (ebml_read_id(s, NULL) != MATROSKA_ID_CLUSTERTIMECODE) { - ebml_read_skip(s, NULL); - if (stream_tell(s) >= p + l) - break; - } - if (stream_tell(s) < p + l) { - uint64_t num = ebml_read_uint(s, NULL); - if (num == EBML_UINT_INVALID) - return 0; - } - stream_seek(s, p - 4); + stream_seek(s, stream_tell(s) - 4); cont = 1; break; -- 2.11.4.GIT