<div dir="ltr">Hi All,<br><div><br></div><div><span style="color:rgb(0,0,0);font-family:"Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,Verdana,sans-serif;font-size:13px">Note: [AAC requires data beyond the source PCM audio samples in order to correctly encode and decode audio samples due to the nature of the encoding algorithm. AAC encoding uses a transform over consecutive sets of 2048 audio samples, applied every 1024 audio samples (overlapped). For correct audio to be decoded, both transforms for any period of 1024 audio samples are needed. For this reason, encoders add at least 1024 samples of silence before the first ‘true’ audio sample, and often add more. This is called variously “priming”, “priming samples”, or “encoder delay”.</span> ]<br></div><div>Reference: <a href="https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFAppenG/QTFFAppenG.html">https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFAppenG/QTFFAppenG.html</a> </div><div> <br></div><div>I am wondering how does ffmpeg audio decoder handle audio priming. Do we need to trim any part of decoded PCM audio OR ffmpeg decoders internally handles the audio priming accordingly.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Regards,</div><div>Rohit Khali</div></div>