From 8b017c73c4ac3d54bf4d16d8349059c1de4dbc36 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 14 Apr 2013 02:49:07 +0200 Subject: core: matroska: support concatenated segments Matroska files can contain multiple segments, which are literally further Matroska files appended to the main file. They can be referenced by segment linking. While this is an extraordinarily useless and dumb feature, we support it for the hell of it. This is implemented by adding a further demuxer parameter for skipping segments. When scanning for linked segments, each file is opened multiple times, until there are no further segments found. Each segment will have a separate demuxer instance (with a separate file handle etc.). It appears the Matroska spec. has an even worse feature for segments: live streaming can completely reconfigure the stream by starting a new segment. We won't add support for it, because there are 0 people on this earth who think Matroska life streaming is a good idea. (As opposed to serving Matroska/WebM files via HTTP.) --- demux/demux.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'demux/demux.h') diff --git a/demux/demux.h b/demux/demux.h index c922dc8bb5..fb695e6a45 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -211,6 +211,8 @@ typedef struct demux_attachment struct demuxer_params { unsigned char (*matroska_wanted_uids)[16]; + int matroska_wanted_segment; + bool *matroska_was_valid; }; typedef struct demuxer { -- cgit v1.2.3