<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>In the libAV examples distributed with ffmpeg, I see the following code:<br><br>    // Flush cache frames<br>    do {<br>        decode_packet(&got_frame, 1);<br>    } while (got_frame);<br><br>What are cached frames and what does the above do?  Is this explained<br>anywhere?<br><br>In my libav app, I'm trying to do simple edits.  So, I seek to the edit-start,<br>decode all packets until I reach the edit-end, then seek to the next<br>edit-start.  After all edits are processed, I call the above (not knowing<br>what it does) and it loops forever.<br></div></div></body></html>