[Mplayer-cvslog] CVS: main/libao2 ao_sun.c,1.24,1.25

Attila Kinali CVS attila at mplayerhq.hu
Sun Jun 22 23:29:42 CEST 2003


Update of /cvsroot/mplayer/main/libao2
In directory mail:/var/tmp.root/cvs-serv26155

Modified Files:
	ao_sun.c 
Log Message:
fix bps calculation when resampling,
patch by Marcus Comstedt <marcus (at) mc.pp.se>


Index: ao_sun.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_sun.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- ao_sun.c	21 Mar 2003 16:42:50 -0000	1.24
+++ ao_sun.c	22 Jun 2003 21:29:15 -0000	1.25
@@ -562,7 +562,7 @@
     }
 
     bytes_per_sample = channels * info.play.precision / 8;
-    ao_data.bps = byte_per_sec = bytes_per_sample * rate;
+    ao_data.bps = byte_per_sec = bytes_per_sample * ao_data.samplerate;
     ao_data.outburst = byte_per_sec > 100000 ? 16384 : 8192;
 
 #ifdef	__not_used__



More information about the MPlayer-cvslog mailing list