Does anybody feel in charge of audio/faad?
I came across this on sparc64 (LP64, BE):

$ xmms audio.m4a
2-MPEG-4 AAC Low Complexity profile

** WARNING **: /dev/audio: cannot handle 0 Hz (Invalid argument)
MP4 - 2 channels @ 0 Hz
Floating point exception (core dumped) 

But:
$ faad -i audio.m4a
...
LC AAC  179.106 secs, 2 ch, 44100 Hz
...

Poking around a bit, I see this:

faad.h:

  char FAADAPI faacDecInit2(faacDecHandle hDecoder, unsigned char *pBuffer,
                           unsigned long SizeOfDecoderSpecificInfo,
                           unsigned long *samplerate, unsigned char *channels);

(And the XMMS plugin follows that prototype.)

libfaad/decoder.c:

  int8_t FAADAPI faacDecInit2(faacDecHandle hDecoder, uint8_t *pBuffer,
                              uint32_t SizeOfDecoderSpecificInfo,
                              uint32_t *samplerate, uint8_t *channels)

Ouch!  And this isn't the only function where the prototypes and
the actual function definition disagree.

-- 
Christian "naddy" Weisgerber                          [EMAIL PROTECTED]

Reply via email to