Mercurial > mplayer.hg
changeset 10691:665fd8af2db7
fabs needs math.h
author | ranma |
---|---|
date | Mon, 25 Aug 2003 09:08:06 +0000 |
parents | 164fda5feaa6 |
children | 7cb48ef05b02 |
files | mplayer.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Mon Aug 25 08:38:17 2003 +0000 +++ b/mplayer.c Mon Aug 25 09:08:06 2003 +0000 @@ -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);