mirror of
https://github.com/mpv-player/mpv
synced 2024-12-15 03:15:52 +00:00
Add -tsprog support for lavf to mencoder, similar to what SVN r29846 did for mplayer.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29910 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1de7fb056b
commit
2acbece5fb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user