[Mplayer-cvslog] CVS: main mplayer.c,1.721,1.722
Tobias Diedrich CVS
ranma at mplayerhq.hu
Mon Aug 25 11:09:30 CEST 2003
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv27344
Modified Files:
mplayer.c
Log Message:
fabs needs math.h
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.721
retrieving revision 1.722
diff -u -r1.721 -r1.722
--- mplayer.c 18 Aug 2003 14:05:30 -0000 1.721
+++ mplayer.c 25 Aug 2003 09:08:06 -0000 1.722
@@ -3551,7 +3551,8 @@
// DVD sub
len = ds_get_packet_sub(d_dvdsub,(unsigned char**)&packet);
if(len > 0) {
- if (fabs(d_dvdsub->pts - sh_video->pts) < 10) // prevent missing subs on pts reset
+ float x = d_dvdsub->pts - sh_video->pts;
+ if (x < -10 || x > 10) // prevent missing subs on pts reset
timestamp = 90000*(sh_video->timer + d_dvdsub->pts + sub_delay - sh_video->pts);
else timestamp = 90000*(sh_video->timer + sub_delay);
mp_dbg(MSGT_CPLAYER,MSGL_V,"\rDVD sub: len=%d v_pts=%5.3f s_pts=%5.3f ts=%d \n",len,sh_video->pts,d_dvdsub->pts,timestamp);
More information about the MPlayer-cvslog
mailing list