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

nicodvb subversion at mplayerhq.hu
Sun Jul 15 22:32:20 CEST 2007


Author: nicodvb
Date: Sun Jul 15 22:32:19 2007
New Revision: 23787

Log:
added support for -alang and -slang with dvdnav:// streams

Modified:
   trunk/mencoder.c

Modified: trunk/mencoder.c
==============================================================================
--- trunk/mencoder.c	(original)
+++ trunk/mencoder.c	Sun Jul 15 22:32:19 2007
@@ -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);



More information about the MPlayer-cvslog mailing list