[Libav-user] Seek to 0 doesn't reset dts/pts

J Decker d3ck0r at gmail.com
Tue Aug 12 03:15:12 CEST 2014


wasn't properly flushing the video coded... feeding a NULL data packet
until !packet_completed


On Mon, Aug 11, 2014 at 3:42 PM, J Decker <d3ck0r at gmail.com> wrote:

> 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?
>
> I found these
> file->pVideoCodecCtx->pts_correction_last_dts = 0;
> file->pVideoCodecCtx->pts_correction_last_pts = 0;
>
> and set them to 0 also when I seek; but the timstamp is still being set
> wrong.
> I'm on windows, using latest x86 dll build from http://ffmpeg.zeranoe.com/
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140811/5551fd2c/attachment.html>


More information about the Libav-user mailing list