<p> On Nov 6, 2011 1:03 AM, "Burk" <<a href="mailto:burkheart@yahoo.com">burkheart@yahoo.com</a>> wrote:<br>
><br>
> Hi, in my video player when I seek by file position using av_seek_frame(..., AVSEEK_FLAG_ANY | AVSEEK_FLAG_BYTE)) then the following packets from av_read_frame have the dts field reset starting from 0 again. That behavior is only observed when using AVSEEK_FLAG_BYTE, which I really need in this case. This is problematic, because I have been using the packet dts field to compute the current time of the frame in the video. <br>
><br>
> Any work-around that I can use? Tried display_picture_number, but that is consistently 0. I am out of ideas now.</p>
<p>What kind of video format are you reading? In most cases, the packet number and display time cannot be read from the file or stream, but only calculated by straightforward counting.</p>
<p>> Thanks in advance, Thomas</p>
<p>Good luck,<br>
Alex<br>
_______________________________________________<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">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
><br>
</p>