<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br><br><div><div id="SkyDrivePlaceholder"></div>Date: Mon, 9 Jul 2012 12:14:44 +0200<br>From: nicolas.george@normalesup.org<br>To: libav-user@ffmpeg.org<br>Subject: Re: [Libav-user] missing frames while decoding<br><br><pre>Le duodi 22 messidor, an CCXX, Murthy avsn a écrit :<br>> Hi a l ,thanks for you support.I have problem with decoding frames. I am<br>> trying to save frames in a h264 stream to .PPM file.I am trying to decode<br>\eoStream) { // Decode video frame avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet);<br><span style="font-family: Tahoma; font-size: 10pt; "><br></span></pre><pre><span style="font-size: 10pt; ">> </span><span style="font-family: Tahoma; font-size: 10pt; ">That is unreadable. You should consider getting a more code-friendly mail</span></pre><pre>>client if you intend to post on this kind of mailing list.<br> </pre><pre>>Regarding your problem, it seems you are not flushing the decoder. After the<br>>input is finished, you have to feed empty packets to the decoder so that it<br>>returns the frames that were delayed by previous B-frames.<br> </pre><pre><br></pre><pre>Sorry for not being clear in my previous mail.</pre><pre>Here is the code.</pre><pre><a href="http://pastebin.com/3qsGrrCU">http://pastebin.com/3qsGrrCU</a></pre><pre>Can you please link me to any example regarding flushing the decoder.</pre><pre>Thank you for your support.</pre><pre><br></pre><pre><br></pre><pre><br></pre><pre><br></pre><pre><br></pre><pre><br></pre></div> </div></body>
</html>