diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-12-31 08:08:50 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-12-31 08:09:51 +0200 |
commit | 3ad06dd7d2fb381670a741c769401501c10aacc8 (patch) | |
tree | 1eda6ac07cb776b2496c153f7c6aeefc9e7eb25d /libmpdemux/demux_mkv.c | |
parent | edcc0c9674e8e3442076d4e783b030cb0366fd59 (diff) | |
download | mpv-3ad06dd7d2fb381670a741c769401501c10aacc8.tar.bz2 mpv-3ad06dd7d2fb381670a741c769401501c10aacc8.tar.xz |
demux_mkv: remove useless code
Remove leftover code that no longer did anything useful after earlier
changes.
Diffstat (limited to 'libmpdemux/demux_mkv.c')
-rw-r--r-- | libmpdemux/demux_mkv.c | 18 |
1 files 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; |