diff mencoder.c @ 31882:ef30e1505969

Do not call *_aid_from_lang when audio_lang is NULL.
author reimar
date Mon, 16 Aug 2010 10:33:33 +0000
parents e30fe0cb79cd
children d9a6b45b8ef9
line wrap: on
line diff
--- a/mencoder.c	Sun Aug 15 00:07:13 2010 +0000
+++ b/mencoder.c	Mon Aug 16 10:33:33 2010 +0000
@@ -710,7 +710,7 @@
   mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_OpenedStream, file_format, (int)(stream->start_pos), (int)(stream->end_pos));
 
 if(stream->type==STREAMTYPE_BD){
-  if(audio_id==-1) audio_id=bd_aid_from_lang(stream,audio_lang);
+  if(audio_lang && audio_id==-1) audio_id=bd_aid_from_lang(stream,audio_lang);
   if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=bd_sid_from_lang(stream,dvdsub_lang);
 }