1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-07 18:14:33 +00:00

Fix this stupid math mistake in calcultating audio buffer duration

for audio only


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4748 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2002-02-17 17:35:34 +00:00
parent 46d2afb149
commit a2dd052bb4

View File

@ -1583,7 +1583,7 @@ if(!sh_video) {
,(sh_audio->timer>0.5)?100.0*audio_time_usage/(double)sh_audio->timer:0 ,(sh_audio->timer>0.5)?100.0*audio_time_usage/(double)sh_audio->timer:0
,cache_fill_status ,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; goto read_input;
} }