Mercurial > mplayer.hg
diff libmpdemux/demux_lavf.c @ 26091:8732f2107b56
Don't select audio stream in lavf and mkv demuxers.
author | eugeni |
---|---|
date | Fri, 29 Feb 2008 17:25:52 +0000 |
parents | 12904c37c798 |
children | 2b4e40be7cb0 |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Fri Feb 29 17:25:50 2008 +0000 +++ b/libmpdemux/demux_lavf.c Fri Feb 29 17:25:52 2008 +0000 @@ -338,8 +338,8 @@ if (st->language) sh_audio->lang = strdup(st->language); if(mp_msg_test(MSGT_HEADER,MSGL_V) ) print_wave_header(sh_audio->wf, MSGL_V); - if((audio_lang && st->language[0] && !strncmp(audio_lang, st->language, 3)) - || (demuxer->audio->id == i || demuxer->audio->id == -1)) { + // select the first audio stream + if (!demuxer->audio->sh) { demuxer->audio->id = i; demuxer->audio->sh= demuxer->a_streams[i]; } else