summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-31 22:01:54 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-31 22:01:54 +0000
commit0f88f9046eb873e7c09618841b91f153b74179b3 (patch)
tree9b3e799cc119256ca15091db50c263cc0ac44b2f /mencoder.c
parent69c5d80089dfa6739d22e7cf86f56766d5037369 (diff)
downloadmpv-0f88f9046eb873e7c09618841b91f153b74179b3.tar.bz2
mpv-0f88f9046eb873e7c09618841b91f153b74179b3.tar.xz
-alang/-slang support in mencoder too
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5437 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index e85b3b5723..9d3e80d209 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -124,6 +124,8 @@ int audio_id=-1;
int video_id=-1;
int dvdsub_id=-1;
int vobsub_id=-1;
+char* audio_lang=NULL;
+char* dvdsub_lang=NULL;
static char* spudec_ifo=NULL;
static int has_audio=1;
@@ -606,6 +608,15 @@ divx4_param.rc_reaction_ratio = 20;
printf("success: format: %d data: 0x%X - 0x%X\n",file_format, (int)(stream->start_pos),(int)(stream->end_pos));
+#ifdef USE_DVDREAD
+if(stream->type==STREAMTYPE_DVD){
+ current_module="dvd lang->id";
+ if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);
+ if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
+ current_module=NULL;
+}
+#endif
+
if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0);
#ifdef HAVE_LIBCSS