summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index 376aa9b1a1..c823f3349a 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -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)