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

J Decker d3ck0r at gmail.com
Tue Aug 12 00:42:49 CEST 2014


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/90088f4c/attachment.html>


More information about the Libav-user mailing list