summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index e1c7ef2823..c1dc9fcd40 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -580,6 +580,13 @@ if(stream->type==STREAMTYPE_DVD){
}
#endif
+#ifdef USE_DVDNAV
+if(stream->type==STREAMTYPE_DVDNAV){
+ if(audio_lang && audio_id==-1) audio_id=dvdnav_aid_from_lang(stream,audio_lang);
+ if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=dvdnav_sid_from_lang(stream,dvdsub_lang);
+}
+#endif
+
stream->start_pos+=seek_to_byte;
if(stream_cache_size>0) stream_enable_cache(stream,stream_cache_size*1024,0,0);