On Thu, 18 Dec 2008 21:55:51 -0500, Michael Conrad <[email protected]> wrote: > The contract is that you must use the frame before the > next call to decode, and that you must free the frame as well, so the > codec can use whichever method it likes to manage memory.
Whoops! I was thinking packets. Frame data doesn't need to be freed. (its always managed by the codec) Your view of it (contained in AVFrame) lasts from the time you call decode, until you decode again, until you flush the codec (i.e. for seeking), or until you close the codec. That original statement should be accurate for decoders and packets, though, in case you're wondering. -- Michael Conrad IntelliTree Solutions llc. 513-552-6362 [email protected] _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
