[MPlayer-dev-eng] Patch for correct seek in MPEG files with pts offset != 0

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Jul 18 10:58:19 CEST 2005


Hi,
On Mon, Jul 18, 2005 at 10:48:19AM +0200, Yaro Pollak wrote:
> Following my post in MPlayer-users I'm posting the changes I made to demux_mpg.c in order to correct a problem, where seeking was done incorrectly (or not done at all) in MPEG-PS files that started with initial pts > 0. I'm not sure if this is the best solution (as the time stamps remain absolute, and not 0-based, it looks as if the movie started from the middle, but at least the seek works now).

Though this is an improvement, in the end it is also only yet another
hack for yet another special case.
What would be necessary is implementing -forceidx for MPEG (giving the
same effect as mencoder -oac copy -ovc copy -of mpeg),

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list