[MPlayer-dev-eng] 64-bit issue in ad_faad.c

Nico Sabbi nicola_sabbi at fastwebnet.it
Mon Apr 30 12:12:19 CEST 2007


Rasmus Rohde wrote:
> To make ad_faad detect the correct sample rate on 64-bit systems the
> attached patch should be applied.
> 
> 
> ------------------------------------------------------------------------
> 
> Index: ad_faad.c
> ===================================================================
> --- ad_faad.c	(revision 23174)
> +++ ad_faad.c	(working copy)
> @@ -67,7 +67,7 @@
>  extern int audio_output_channels;
>  static int init(sh_audio_t *sh)
>  {
> -  unsigned long faac_samplerate;
> +  unsigned int faac_samplerate;
>    unsigned char faac_channels;
>    int faac_init, pos = 0;
>    faac_hdec = faacDecOpen();
> 

from neaacdec.h:

long NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder,
                               unsigned char *buffer,
                               unsigned long buffer_size,
                               unsigned long *samplerate,
                               unsigned char *channels);

/* Init the library using a DecoderSpecificInfo */
char NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, unsigned char 
*pBuffer,
                                unsigned long SizeOfDecoderSpecificInfo,
                                unsigned long *samplerate, unsigned 
char *channels);


so your change is not correct. Your problems must be due to something 
else. Dig deeper, please



More information about the MPlayer-dev-eng mailing list