Thanks Carl, Yes, I checked the AAC decoder code and found that only AV_SAMPLE_FMT_FLTP is supported. So I have to do conversion myself.
Thanks! 在 2013-2-6,21:17,Carl Eugen Hoyos <[email protected]> 写道: > 黄轩宇 <xuanyu.huang@...> writes: > >> Our application, when used with old version to >> open a MP4 file with AAC encoded audio, the populated >> pAudioCodecCtx->sample_fmt == AV_SAMPLE_FMT_FLP, but >> when used with latest FFMPEG version, this value >> changed to AV_SAMPLE_FMT_FLTP. >> >> I found a member AVCodecContext::request_sample_fmt >> which is said can be set by user. > > This is not a solution because most decoders > only support one sample_fmt. > > Use the aconvert filter to convert between > sample formats. > > Carl Eugen > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
