[MPlayer-users] get pts of vob file error
qwen dux
qwenxu at gmail.com
Tue Apr 11 10:07:09 CEST 2006
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.
More information about the MPlayer-users
mailing list