[vlc-commits] mkv: only allow one video track at a time
Steve Lhomme
git at videolan.org
Fri Nov 24 08:49:46 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Nov 23 15:25:39 2017 +0100| [32ab4fc98d97b6b0cb1728be79ebbd74d19b3e79] | committer: Jean-Baptiste Kempf
mkv: only allow one video track at a time
This is how Matroska is supposed to work
Fixes #19129
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=32ab4fc98d97b6b0cb1728be79ebbd74d19b3e79
---
modules/demux/mkv/matroska_segment.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 58de05f464..52be3711c7 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -1108,6 +1108,8 @@ bool matroska_segment_c::ESCreate()
{
/* add all es */
msg_Dbg( &sys.demuxer, "found %d es", static_cast<int>( tracks.size() ) );
+ es_out_Control( sys.demuxer.out, ES_OUT_SET_ES_CAT_POLICY, VIDEO_ES,
+ ES_OUT_ES_POLICY_EXCLUSIVE );
for( tracks_map_t::iterator it = tracks.begin(); it != tracks.end(); ++it )
{
More information about the vlc-commits
mailing list