[Libav-user] Cached frames

J Decker d3ck0r at gmail.com
Fri Jul 24 05:11:10 CEST 2015

On Thu, Jul 23, 2015 at 5:13 PM, Gonzalo Garramuno <ggarra13 at gmail.com>

> I understand that some video (and audio) codecs cache frames to decode B
> frames for example.  In order to retrieve the last frames of such movies,
> it is needed to call av_read_frame and wait for an error of AVERROR_EOF
> which then means I need to pass packets with NULL and size 0.
> This is all dandy.  However, I would like to know in advance how many
> times I will need to pass packets with NULL and size 0.  Is there a way to
> know this?
> until it stops returning a frame.

> --
> Gonzalo Garramuño
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150723/9b1f345c/attachment.html>

More information about the Libav-user mailing list