vlc | branch: master | Thomas Guillem <[email protected]> | Tue Feb 18 11:26:11 2020 +0100| [37b89d6ef4cbee1ed66c62ed2c7d4876bb417184] | committer: Thomas Guillem
demux: avformat: use stable ids Use the track addition order as a track id. It's expected to be always the same order since tracks are added from the open callback(). > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=37b89d6ef4cbee1ed66c62ed2c7d4876bb417184 --- modules/demux/avformat/demux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c index 744a4e3680..ad8be31403 100644 --- a/modules/demux/avformat/demux.c +++ b/modules/demux/avformat/demux.c @@ -712,6 +712,7 @@ int avformat_OpenDemux( vlc_object_t *p_this ) } } + es_fmt.i_id = i; p_track->p_es = es_out_Add( p_demux->out, &es_fmt ); if( p_track->p_es && (s->disposition & AV_DISPOSITION_DEFAULT) ) es_out_Control( p_demux->out, ES_OUT_SET_ES_DEFAULT, p_track->p_es ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
