From: <dn...@gm...> - 2007-02-19 11:16:31
|
On Sun, 18 Feb 2007 15:17:35 +0200 Timo Hirvonen <tih...@gm...> wrote: > > @@ -35,9 +35,9 @@ struct mp4_private { > > int overflow_buf_len; > > > > unsigned char channels; > > - unsigned long sample_rate; > > + uint32_t sample_rate; > > I changed them back to unsigned longs to get rid of some warnings. faacDecInit() (in version 2.0) takes a pointer to a uint32_t for the sample rate: long FAADAPI faacDecInit(faacDecHandle hDecoder, uint8_t *buffer, uint32_t buffer_size, uint32_t *samplerate, uint8_t *channels); Which is why I changed it to uint32_t. I'm not getting any compiler warnings, but I've only compiled it on my 32-bit ppc box. Typecasting it to unsigned long (or another appropriate type) where it causes compiler warnings would probably work better, I think. :) |