diff mplayer.c @ 18309:87161f96fa66

Change common pts variables from floats to doubles. Individual demuxers should be changed later.
author uau
date Thu, 27 Apr 2006 11:13:21 +0000
parents 008309f674bd
children 3b5b7e78b9af
line wrap: on
line diff
--- a/mplayer.c	Thu Apr 27 08:44:04 2006 +0000
+++ b/mplayer.c	Thu Apr 27 11:13:21 2006 +0000
@@ -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;