path: root/demux/demux_mkv.c
diff options
authorwm4 <wm4@nowhere>2013-04-14 19:19:35 +0200
committerwm4 <wm4@nowhere>2013-04-20 23:28:24 +0200
commit654c34f77166d24914d3ff0a2923c128d846430d (patch)
tree8b0cde907cfe3e55a0ecbe86256703582d671d21 /demux/demux_mkv.c
parent06eee1b6751c43189efd994fa296c9753a89b89c (diff)
demux: add functions to simplify demuxers
Some preparations to simplify demux_mkv and demux_lavf. struct demux_stream manages state for each stream type that is being demuxed (audio/video/sub). demux_stream is rather annoying, especially the id and sh members, which are often used by the demuxers to determine current stream and so on. Demuxers don't really have to access this, except for testing whether a stream is selected and to add packets. Add a new_sh_stream(), which allows creating streams without having the caller specify any kind of stream ID. Demuxers should just use sh_stream pointers, instead of multiple kinds of IDs and indexes.
Diffstat (limited to 'demux/demux_mkv.c')
0 files changed, 0 insertions, 0 deletions