comparison 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
comparison
equal deleted inserted replaced
26090:c585e2ad8ebf 26091:8732f2107b56
336 break; 336 break;
337 } 337 }
338 if (st->language) 338 if (st->language)
339 sh_audio->lang = strdup(st->language); 339 sh_audio->lang = strdup(st->language);
340 if(mp_msg_test(MSGT_HEADER,MSGL_V) ) print_wave_header(sh_audio->wf, MSGL_V); 340 if(mp_msg_test(MSGT_HEADER,MSGL_V) ) print_wave_header(sh_audio->wf, MSGL_V);
341 if((audio_lang && st->language[0] && !strncmp(audio_lang, st->language, 3)) 341 // select the first audio stream
342 || (demuxer->audio->id == i || demuxer->audio->id == -1)) { 342 if (!demuxer->audio->sh) {
343 demuxer->audio->id = i; 343 demuxer->audio->id = i;
344 demuxer->audio->sh= demuxer->a_streams[i]; 344 demuxer->audio->sh= demuxer->a_streams[i];
345 } else 345 } else
346 st->discard= AVDISCARD_ALL; 346 st->discard= AVDISCARD_ALL;
347 break; 347 break;