[MPlayer-cvslog] r29910 - trunk/mencoder.c

reimar subversion at mplayerhq.hu
Fri Nov 13 15:36:39 CET 2009


Author: reimar
Date: Fri Nov 13 15:36:38 2009
New Revision: 29910

Log:
Add -tsprog support for lavf to mencoder, similar to what SVN r29846 did for mplayer.

Modified:
   trunk/mencoder.c

Modified: trunk/mencoder.c
==============================================================================
--- trunk/mencoder.c	Fri Nov 13 15:12:25 2009	(r29909)
+++ trunk/mencoder.c	Fri Nov 13 15:36:38 2009	(r29910)
@@ -552,6 +552,14 @@ if(stream->type==STREAMTYPE_DVDNAV){
 	mencoder_exit(1,NULL);
   }
 
+  if (ts_prog) {
+    demux_program_t prog = { .progid = ts_prog };
+    if (demux_control(demuxer, DEMUXER_CTRL_IDENTIFY_PROGRAM, &prog) != DEMUXER_CTRL_NOTIMPL) {
+      audio_id = prog.aid; // switching is handled by select_audio below
+      video_id = prog.vid;
+      demuxer_switch_video(demuxer, video_id);
+    }
+  }
   select_audio(demuxer, audio_id, audio_lang);
 
   if (dvdsub_id == -1 && dvdsub_lang)


More information about the MPlayer-cvslog mailing list