[MPlayer-dev-eng] [PATCH] Timestamp-based mpg seeking

Michael Behrisch behrisch at informatik.hu-berlin.de
Tue Oct 26 10:16:05 CEST 2004


On Sat, Oct 23, 2004 at 12:28:09PM +0200, Bohdan Horst wrote:
> On Sat, Oct 23, 2004 at 02:06:42AM +0200, Aurelien Jacobs wrote:
> > On Mon, 18 Oct 2004 10:28:27 +0200
> > Michael Behrisch <behrisch at informatik.hu-berlin.de> wrote:
> > 
> > > On Sun, Oct 17, 2004 at 06:42:00PM +0200, Aurelien Jacobs wrote:
> > > > 
> > > > There was a slight modifications on demux_mpg.c in cvs. Hence,
> > > > your patch do not apply anymore. Could you please update it ?
> > > > Then I will probably commit it in a few days if no one else do
> > > > it or complain. This patch seem clean, works well and is really
> > > > useful IMHO.
> > > > 
> > > 
> > > I updated the patch and also added some modifications which 
> > > improve seeking for files without valid timestamps.
> > 
> > Thanks, applied.
> > 
> 
> doesn't help with my "Resident Evil" and "Whole Nine Yards" DVDs ..
> 
> (both report total time = 0:00:00 and seek doesn't work.. - EOF etc)
> 

did seeking work before the patch?

You could try increasing the 500000 in the following line in demux_mpg.c:
  off_t end_seq_start = demuxer->movi_end-500000; // 500000 is a wild guess

Hope this helps,
Michael




More information about the MPlayer-dev-eng mailing list