[MPlayer-dev-eng] [PATCH] resubmit realv4.diff

Balatoni Denes pnis at coder.hu
Sun Mar 9 13:30:18 CET 2003


Hi!

So in this part
if ((priv->kf_pts==65535) || s[0]==0 || s[0]==1) {
+           int tmp=(timestamp&0x1fff)-kf;
+           if ((ABS(priv->kf_pts_error-tmp) > 100) || (priv->kf_pts==65535)) 
drop=1;
+           priv->kf_pts_error=tmp;
+           mp_msg(MSGT_DEMUX,MSGL_V,"kf_pts vs. stream_pts desync: 
%d\n",priv->kf_pts_error);
+       }


if you change "|| s[0]==0 || s[0]==1" to
eg. ((unsigned char)s[0]<0x10) than it works ok.
I don't remember why i put 0 and 1 there, maybe otherwise
it will break some files? I tried a few problematic now, they work.

bye
Denes


On 2003. március 9. 11:30, Arpi wrote:
> Hi,
>
> > On Sunday 09 March 2003 10:55, Balatoni Denes wrote:
> > > Hi!
> > >
> > > I can not really tell but you are saying that after the cut when
> > > mplayer says a-v sync:0.0001 the audio is in fact not in sync with
> > > video?
> >
> > unfortunately yes :(. So I guess realplay use some other ways to maintain
> > a-v sync.
>
> someone should rev.eng. the rv30,40 codecs to see what are they doing with
> the timestamps.




More information about the MPlayer-dev-eng mailing list