<div dir="ltr">Hey folks, I've got it working!  I appreciate all the help you guys provided...it turns out the last thing wm4 had mentioned was the problem.  Once the stream hit the EOF, I kept processing frames with null/0 packets until it was finished and that fed me the remaining frames.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 22, 2014 at 7:15 PM, wm4 <span dir="ltr"><<a href="mailto:nfxjfg@googlemail.com" target="_blank">nfxjfg@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On Mon, 21 Jul 2014 12:37:45 -0400<br>
Matt Orlando <<a href="mailto:morlando616@gmail.com">morlando616@gmail.com</a>> wrote:<br>
<br>
> Hi folks,<br>
><br>
> I'm having some trouble with the decoding of my h.264 movies.  I've tested<br>
> with different videos, one 64 frames long and another 52 frames long.  In<br>
> both cases, the first 8 frames (exactly 8) weren't decoding.  In other<br>
> words, the call to avcodec_decode_video2 returns 0 for the got_picture<br>
<br>
</div>I think never libavcodec versions skip broken frames (frames that could<br>
not be properly decoded, and which may contain garbage). You can set the<br>
CODEC_FLAG2_SHOW_ALL flag to enable output of them.<br>
<br>
Also keep in mind that the first frames may not produce any output,<br>
because the decoder buffers them internally. This is needed for<br>
B-frames (some frames can reference future frames, so you obviously<br>
can get them until these future frames are decoded), or for<br>
multithreading (each thread incurs an additional delay). When you have<br>
no more packets, you need to send flush packets (data/size set to 0) to<br>
get the last frames.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br></div>