[PATCH] support for -alang in demux_lavf
$Subject Michael, ok to proceed? Nico
Nico Sabbi wrote:
$Subject
Michael, ok to proceed?
Nico
------------------------------------------------------------------------
Index: libmpdemux/demux_lavf.c =================================================================== --- libmpdemux/demux_lavf.c (revisione 18765) +++ libmpdemux/demux_lavf.c (copia locale) @@ -37,6 +37,8 @@
#define PROBE_BUF_SIZE 2048
+extern char *audio_lang; + typedef struct lavf_priv_t{ AVInputFormat *avif; AVFormatContext *avfc; @@ -244,12 +246,14 @@ break; } if( mp_msg_test(MSGT_HEADER,MSGL_V) ) print_wave_header(sh_audio->wf, MSGL_V); - if(demuxer->audio->id != i && demuxer->audio->id != -1) + if((audio_lang && st->language[0] && !strncmp(audio_lang, st->language, 3)) + || (demuxer->audio->id == i || demuxer->audio->id == -i)
^^^^^^^^^^^^^^^^^^^^ of course this check should read demuxer->audio->id == -1
Hi On Wed, Jun 21, 2006 at 01:23:24AM +0200, Nico Sabbi wrote:
Nico Sabbi wrote:
$Subject
Michael, ok to proceed?
ok [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB In the past you could go to a library and read, borrow or copy any book Today you'd get arrested for mere telling someone where the library is
participants (2)
-
Michael Niedermayer -
Nico Sabbi