[FFmpeg-devel] Thirdparty audio codec integration

Michael Niedermayer michael at niedermayer.cc
Wed Apr 6 17:08:03 CEST 2016


On Wed, Apr 06, 2016 at 10:49:06AM +0530, Suresh Kumar wrote:
> Hello Carl,
> 
> Thank you for your reply.
> 
> >>Did you look at the aresample filter and libswresample?
> You mean to say resample filter is required before/after our decoder?
> Our audio PCM decoder is expecting signed 16/24 bit. We are getting proper
> input to the decoder.
> The decoder process the data and fill with "float" values, which will be
> required to use by rendering as float data.
> My query is, what flags need to set from the decoder level so that the
> rendering will understand the data is float.

The decoder sets the output sample format through

AVCodecContext->sample_fmt
AVFrame.format (or get_buffer() through AVCodecContext->sample_fmt)


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160406/1691566c/attachment.sig>


More information about the ffmpeg-devel mailing list