[MPlayer-dev-eng] PTS system broken..

Arpi arpi at thot.banki.hu
Fri Mar 1 00:36:59 CET 2002


Hi,

> > ok, in your case, v_timer_corr=0.000001
> > but why does it cause any skip or drop ?
> > 
> > // check frame duplicate/drop:
> > 
> > if(v_timer_corr>=(float)mux_v->h.dwScale/mux_v->h.dwRate){
> >     v_timer_corr-=(float)mux_v->h.dwScale/mux_v->h.dwRate;
> >     ++skip_flag; // skip
> > } else
> > while(v_timer_corr<=-(float)mux_v->h.dwScale/mux_v->h.dwRate){
> >     v_timer_corr+=(float)mux_v->h.dwScale/mux_v->h.dwRate;
> >     --skip_flag; // dup
> > }
> > 
> > it won't skip or drop until it reaches one frame time + or -.
> 
> I dont have access to my PAL machine right now, but on a NTSC capture machin
> e,
> same problem occurs:
> 
> DUPLICATE: -0.033334 <= -0.033333 -0.000001

but WHY ?

i agree on that 0.00001 error can happen, but it means v_timer_corr=0.00001
and NOT v_timer_corr=-0.033333 !!!! ?

v_timer_corr should be near to zero, unless something wrong happens...
(progressive steram, duplicated frame on input etc)


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list