On Mon, Sep 27, 2010 at 11:00:04PM +0200, Clément Bœsch wrote: > Hi, > > I'm having troubles using avcodec_decode_audio3 when trying to decode all > audio packets in an MP3. It works fine with Flac files: I get the correct > number of samples (when dividing them by 44100, its sample rate, I get the > correct duration in seconds). > > [...] > > Did I missed something? >
Reply to myself: I was simply using the input data length (len) instead of the output one (data_size). So replacing len/2 with data_size/4 (2 channels + 2 bytes per data) solved my problem. Sorry for the noise, -- Clément B. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
