Mercurial > mplayer.hg
diff libao2/ao_sun.c @ 10325:30b9deee1235
fix bps calculation when resampling,
patch by Marcus Comstedt <marcus (at) mc.pp.se>
author | attila |
---|---|
date | Sun, 22 Jun 2003 21:29:15 +0000 |
parents | 12b1790038b0 |
children | 99798c3cdb93 |
line wrap: on
line diff
--- a/libao2/ao_sun.c Sun Jun 22 19:21:40 2003 +0000 +++ b/libao2/ao_sun.c Sun Jun 22 21:29:15 2003 +0000 @@ -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__