[Libav-user] What' the difference of decoding an Audio frame of planar sample format with avcodec_decode_audio3 and 4

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Feb 8 14:28:19 CET 2013

黄轩宇 <xuanyu.huang at ...> writes:

> Another thing is about libavresample and libswresample.

Please note that only libswresample is supported (and 
shold therefore be used).

> I know this two libraries provide interfaces to convert data format.
> But if what I want is just array re-layout (as AAC decoder upgraded 
> from packed sample format to planar format). May I just do that by 
> array manipulation, without using these two libraries?

Just as with libswscale, the library libswresample is provided 
for your convenience, you may or may not use it on your discretion.

Carl Eugen

More information about the Libav-user mailing list