<div dir="ltr">Hi,<br><div><br></div><div>I am using avcodec_receive_frame() to receive and dump decoded frames.</div><div><br></div><div>All my streams are starting with "

IDR" OR "I frames(with SPS,PPS)" however for a few streams this API immediately returns the decoded frame and sometimes with some delay.<br></div><div><br></div><div></div><div>Any idea which encoded param does FFMPEG take into account to start giving the decoded output as part of avcodec_receive_frame()?</div><div><br></div><div>Example: </div><div><b>Case:1</b></div><div>I (No output) </div><div>P (No output)</div><div>B (I Frame)</div><div><b>Case-2:</b></div><div>I 

 (I frame) 

</div><div>B 

 (No output)

</div><div>B 

 (No output)

</div><div>B

 (No output)

</div><div>P

 (No output)

</div><div>B

 (No output)

</div><div>B (B frame)</div><div><br></div><div>Thanks,</div><div>Rohit Khali</div></div>