[Mplayer-cvslog] CVS: main mplayer.c,1.396,1.397

Alban Bedel CVS albeu at mplayer.dev.hu
Sun Feb 17 18:35:37 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv16488

Modified Files:
	mplayer.c 
Log Message:
Fix this stupid math mistake in calcultating audio buffer duration
for audio only


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.396
retrieving revision 1.397
diff -u -r1.396 -r1.397
--- mplayer.c	17 Feb 2002 12:22:00 -0000	1.396
+++ mplayer.c	17 Feb 2002 17:35:34 -0000	1.397
@@ -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;
 }
 




More information about the MPlayer-cvslog mailing list