<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 23, 2015 at 5:13 PM, Gonzalo Garramuno <span dir="ltr"><<a href="mailto:ggarra13@gmail.com" target="_blank">ggarra13@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">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.<br>
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?<span class=""><font color="#888888"><br>
<br></font></span></blockquote><div>until it stops returning a frame. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><font color="#888888">
-- <br>
Gonzalo Garramuño<br>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</font></span></blockquote></div><br></div></div>