[Ffmpeg-devel] Decoded raw audio buffer format

Bill May wmay
Fri Nov 18 18:37:40 CET 2005

Thanos Kyritsis wrote:
>> I have a question regarding the outcome of calling the
>> avcodec_decode_audio() function.
>> For example:
>> len = avcodec_decode_audio(c, (short *)outbuf, &got_audio, pkt.data,
>> pkt.size);
>> What is the format of the raw audio data being put in outbuf ?
>> Is it always uncompressed PCM Signed 16 Bit Little Endian containing
>> the same number of channels  at the same sample rate as the original
>> (input) stream ??

signed 16 is signed 16 on any platform.  On a big endian machine,
you're going to have big endian.  Little endian, little endian.  I believe
the output is always interleaved.

Bill May

More information about the ffmpeg-devel mailing list