[MPlayer-cvslog] CVS: main mplayer.c,1.946,1.947

Uoti Urpala CVS syncmail at mplayerhq.hu
Thu Apr 27 13:13:23 CEST 2006


CVS change done by Uoti Urpala CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv28229

Modified Files:
	mplayer.c 
Log Message:
Change common pts variables from floats to doubles. Individual demuxers
should be changed later.


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.946
retrieving revision 1.947
diff -u -r1.946 -r1.947
--- mplayer.c	25 Apr 2006 22:34:40 -0000	1.946
+++ mplayer.c	27 Apr 2006 11:13:20 -0000	1.947
@@ -3684,7 +3684,7 @@
   if(playsize>0){
       sh_audio->a_out_buffer_len-=playsize;
       memmove(sh_audio->a_out_buffer,&sh_audio->a_out_buffer[playsize],sh_audio->a_out_buffer_len);
-      sh_audio->delay+=playback_speed*playsize/(float)ao_data.bps;
+      sh_audio->delay+=playback_speed*playsize/(double)ao_data.bps;
   }
 
   break;
@@ -3937,8 +3937,8 @@
   current_module="av_sync";
 
   if(sh_audio){
-    float a_pts=0;
-    float v_pts=0;
+    double a_pts=0;
+    double v_pts=0;
 
     // unplayed bytes in our and soundcard/dma buffer:
     float delay=playback_speed*audio_out->get_delay()+(float)sh_audio->a_buffer_len/(float)sh_audio->o_bps;




More information about the MPlayer-cvslog mailing list