Hi all,<div><br></div><div>I'm upgrading our application from using FFMPEG v0.8.5 to latest version. </div><div><br></div><div>As new audio sample formats were introduced in libavutil/samplefmt.h. Now we have both packed format and planar format.</div>
<div><br></div><div>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. </div>
<div><br></div><div>I found a member AVCodecContext::request_sample_fmt which is said can be set by user.</div><div><br></div><div>So my question is, how to set it when opening a file.</div><div><br></div><div>Here is the steps in our application to open a file.</div>
<div>1. avformat_open_input to open a file</div><div>2. avcodec_find_decoder get a pointer to AVCodec</div><div>3. call avcodec_open to open codec</div><div><br></div><div>could anybody tell me where to set the requested sample fmt?</div>
<div><br></div><div>And if anyone can provide the conversion function from packed data to planar data, I'll be so grateful.</div><div><br></div><div>Thanks </div>