changeset 4747:0dec9673d686

Fix this stupid math mistake in calcultating audio buffer duration for audio only
author albeu
date Sun, 17 Feb 2002 17:35:34 +0000
parents cbce019d2d94
children c2adcb81c4ca
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Feb 17 17:18:05 2002 +0000
+++ b/mplayer.c	Sun Feb 17 17:35:34 2002 +0000
@@ -1583,7 +1583,7 @@
 		    ,(sh_audio->timer>0.5)?100.0*audio_time_usage/(double)sh_audio->timer:0
 		    ,cache_fill_status
 		    );
-  usec_sleep(sh_audio->a_buffer_len/sh_audio->o_bps/1000);
+  usec_sleep(sh_audio->a_buffer_len/(float)sh_audio->o_bps*1000000);
   goto read_input;
 }