From fde0e9e84db52cb918c12c7860aa5260f344c335 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 16 Nov 2013 21:28:59 +0100 Subject: demux_packet: add source stream index Might be helpful later. --- demux/demux.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'demux/demux.c') diff --git a/demux/demux.c b/demux/demux.c index 0078e72cdd..095c23fd0c 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -134,6 +134,7 @@ static struct demux_packet *create_packet(size_t len) .duration = -1, .stream_pts = MP_NOPTS_VALUE, .pos = -1, + .stream = -1, }; return dp; } @@ -322,6 +323,9 @@ int demuxer_add_packet(demuxer_t *demuxer, struct sh_stream *stream, return 0; } + dp->stream = stream->index; + dp->next = NULL; + ds->packs++; ds->bytes += dp->len; if (ds->tail) { -- cgit v1.2.3