# HG changeset patch # User albeu # Date 1013967334 0 # Node ID 0dec9673d6860c4e38a5340604ab055a83251119 # Parent cbce019d2d94dbe887f6792ecd5497b2c154d1c8 Fix this stupid math mistake in calcultating audio buffer duration for audio only diff -r cbce019d2d94 -r 0dec9673d686 mplayer.c --- 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; }