[MPlayer-users] get pts of vob file error

Nico Sabbi nsabbi at email.it
Tue Apr 11 14:41:02 CEST 2006


qwen dux wrote:
> hi,
> There was a error  when last mplayer  played  vob file,the  console
> line displayed  the  A-V pos  abnormally,and the osd time is not
> right;
> I read the source,and found the follow code might be the place of problem,
> line 164 of demux_mpg.c:
> pts=(((c>>1)&7)<<30)|((d>>1)<<15)|(e>>1);
> I found xine was worked fine,and source of xine is follow:
>           pts  = (int64_t)(p[ 0] & 0x0E) << 29 ;
>           pts |=  p[ 1]         << 22 ;
>           pts |= (p[ 2] & 0xFE) << 14 ;
>           pts |=  p[ 3]         <<  7 ;
>           pts |= (p[ 4] & 0xFE) >>  1 ;
>
> I attempted to modified the souce but ended in failure.
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
>
>   

oh god,  timestamps are truncated!
33 bits can't be stored in an unsigned int.

I'll fix it tonight
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Vuoi cambiare i tuoi interessi ma non la tua banca? Prova con Conto Arancio
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5039&d=11-4




More information about the MPlayer-users mailing list