[xiph-commits] r9033 - trunk/vorbis/lib
msmith at motherfish-iii.xiph.org
msmith at motherfish-iii.xiph.org
Thu Mar 3 20:33:06 PST 2005
Author: msmith
Date: 2005-03-03 20:33:03 -0800 (Thu, 03 Mar 2005)
New Revision: 9033
Modified:
trunk/vorbis/lib/vorbisenc.c
Log:
Oops. The units (kbps/bps) fix also applies to min and max bitrate in this
interface.
Modified: trunk/vorbis/lib/vorbisenc.c
===================================================================
--- trunk/vorbis/lib/vorbisenc.c 2005-03-04 04:18:55 UTC (rev 9032)
+++ trunk/vorbis/lib/vorbisenc.c 2005-03-04 04:33:03 UTC (rev 9033)
@@ -1091,8 +1091,8 @@
if(ai==NULL)return OV_EINVAL;
ai->management_active=hi->managed;
- ai->bitrate_limit_min_kbps=hi->bitrate_min;
- ai->bitrate_limit_max_kbps=hi->bitrate_max;
+ ai->bitrate_limit_min_kbps=hi->bitrate_min/1000;
+ ai->bitrate_limit_max_kbps=hi->bitrate_max/1000;
ai->bitrate_average_kbps=hi->bitrate_av/1000;
ai->bitrate_average_damping=hi->bitrate_av_damp;
ai->bitrate_limit_reservoir_bits=hi->bitrate_reservoir;
@@ -1135,8 +1135,8 @@
return OV_EINVAL;
hi->managed=ai->management_active;
- hi->bitrate_min=ai->bitrate_limit_min_kbps;
- hi->bitrate_max=ai->bitrate_limit_max_kbps;
+ hi->bitrate_min=ai->bitrate_limit_min_kbps * 1000;
+ hi->bitrate_max=ai->bitrate_limit_max_kbps * 1000;
hi->bitrate_av=ai->bitrate_average_kbps * 1000;
hi->bitrate_av_damp=ai->bitrate_average_damping;
hi->bitrate_reservoir=ai->bitrate_limit_reservoir_bits;
More information about the commits
mailing list