<div dir="ltr">wasn't properly flushing the video coded... feeding a NULL data packet until !packet_completed</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 11, 2014 at 3:42 PM, J Decker <span dir="ltr"><<a href="mailto:d3ck0r@gmail.com" target="_blank">d3ck0r@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I suspend processing, clear all my buffer queues and start reading the file again. But the first video frame has the timestamp of the last frame to show. How do I make sure the pVideoFrame pkt_pts and pkt_dts go back to 0?<div>
<br></div><div>I found these</div><div><div><span style="white-space:pre-wrap"> </span>file->pVideoCodecCtx->pts_correction_last_dts = 0;</div><div><span style="white-space:pre-wrap"> </span>file->pVideoCodecCtx->pts_correction_last_pts = 0;</div>
</div><div><br></div><div>and set them to 0 also when I seek; but the timstamp is still being set wrong.</div><div>I'm on windows, using latest x86 dll build from <a href="http://ffmpeg.zeranoe.com/" target="_blank">http://ffmpeg.zeranoe.com/</a> so I don't have symbols.... and other than setting a breakpoint on the videoframe pkt_dts change, I don't know really what the data is coming from.</div>
</div>
</blockquote></div><br></div>