[FFmpeg-devel] obseve PTS overflow when seeking

Rainer Hochecker fernetmenta at xboxmediacenter.com
Sat Aug 18 20:33:43 CEST 2012


Andrey Utkin <andrey.krieger.utkin <at> gmail.com> writes:

> 
> 2012/8/18 Rainer Hochecker <fernetmenta <at> xboxmediacenter.com>:
> > Hi,
> >
> > I have tracked down a problem where seeking did not work because PTS
> > overflow in mpegts file. The following would fix it but I am not sure
> > whether it's entirely correct. Could you have a look at this?
> 
> Could you provide a test case for bug you have discovered?
> 

I try to explain in more detail. On TV channels the 33bit PTS counter wraps over
every 26 hours. When trying to seek in a recording which contains a PTS overflow
ff_gen_search fails (puts you to the end of the file) because it assumes
increasing timestamps.

Cheers,
Rainer



More information about the ffmpeg-devel mailing list