[MPlayer-dev-eng] [PATCH] libfaad2 - channel bug

Reder Uwe Uwe.Reder at 3SOFT.de
Mon Oct 7 11:30:41 CEST 2002


Hi,

I think libfaad2 changed recently. The functions faacDecInit() and faacDecInit2() now return the number of channels through a pointer to char (was: pointer to long). In my case the original code indicates that the video has about 13 million channels. Hence audio didn't work. The appended patch fixes the problem. Maybe someone should try to find out which version of libfaad2 is installed and extend my patch with conditional compiling.

I'm using version 1.1 of libfaad2 (the current version from www.audiocoding.com).

Bye,
Uwe

--- snip snip ---

--- MPlayer-0.90pre8/libmpcodecs/ad_faad.c	2002/10/04 18:52:10	1.1
+++ MPlayer-0.90pre8/libmpcodecs/ad_faad.c	2002/10/04 18:53:02
@@ -45,7 +45,8 @@
 
 static int init(sh_audio_t *sh)
 {
-  unsigned long faac_samplerate, faac_channels;
+  unsigned long faac_samplerate;
+  unsigned char faac_channels;
   int faac_init;
   faac_hdec = faacDecOpen();
 
--- snip snip ---




More information about the MPlayer-dev-eng mailing list