[Libav-user] What are Cached Frames?

James Board jpboard2 at yahoo.com
Sun Sep 15 17:41:58 CEST 2013


In the libAV examples distributed with ffmpeg, I see the following code:

    // Flush cache frames
    do {
        decode_packet(&got_frame, 1);
    } while (got_frame);

What are cached frames and what does the above do?  Is tis explained
anywhere?


In my libav app, I'm trying to do simple edits.  So, I seek to the edit-start, 

decode all packets until I reach the edit-end, then seek to the next
edit-start.  After all edits are processed, I call the above (not knowing 

what it does) and it loops forever.

Thanks for the help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130915/adac8848/attachment.html>


More information about the Libav-user mailing list