diff options
author | ranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-25 09:08:06 +0000 |
---|---|---|
committer | ranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-25 09:08:06 +0000 |
commit | de38c06bee3ec1fde966283536088927559341c3 (patch) | |
tree | add8d08c5c7edaafd0984ccf70324b2a1463d62a /mplayer.c | |
parent | d688698e2246f40339db6065228804f5d8b06255 (diff) | |
download | mpv-de38c06bee3ec1fde966283536088927559341c3.tar.bz2 mpv-de38c06bee3ec1fde966283536088927559341c3.tar.xz |
fabs needs math.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10692 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3551,7 +3551,8 @@ if(vo_config_count && vo_spudec) { // 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); |