[Libav-user] Flushing queued frames
Eric P. Mangold
eric at teratorn.org
Mon May 6 22:02:57 CEST 2013
On Mon, May 06, 2013 at 12:42:29PM -0700, Brad O'Hearne wrote:
> I am seeing the following output in the console upon trying to close a codec.
>
> [libmp3lame @ 0x10101fe00] 9 frames left in the queue on closing
>
> What is the proper convention for flushing the codec prior to closing it?
>
> Thanks,
>
> Brad
I believe the normal convention is to "encode" an empty frame (NULL AVFrame pointer).
If the codec returns a packet, that is a delayed (queued) packet from the encoder.
Repeat until it stops returning packets.
Cheers,
-E
More information about the Libav-user
mailing list