ext/vorbis/vorbisenc.c: Minimal fix for bug #320200: set the min/max bitrate in the...
authorMichael Smith <msmith@xiph.org>
Mon, 21 Nov 2005 15:16:29 +0000 (15:16 +0000)
committerMichael Smith <msmith@xiph.org>
Mon, 21 Nov 2005 15:16:29 +0000 (15:16 +0000)
Original commit message from CVS:
* ext/vorbis/vorbisenc.c: (gst_vorbisenc_setup):
Minimal fix for bug #320200: set the min/max bitrate in the correct
units. A better fix would be to upgrade to the RATEMANAGE2
interface, rather than using the deprecated interface used here, but
that would require an update in our libvorbis dependency (to 1.1),
which is probably undesirable.

ChangeLog
ext/vorbis/vorbisenc.c

index c4a9cd0f7ade7971850216f7d3843339519c3975..4b5ff0a3f571f99673239911575108be3aabc92d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-11-21  Michael Smith <msmith@fluendo.com>
+
+       * ext/vorbis/vorbisenc.c: (gst_vorbisenc_setup):
+         Minimal fix for bug #320200: set the min/max bitrate in the correct
+         units. A better fix would be to upgrade to the RATEMANAGE2
+         interface, rather than using the deprecated interface used here, but
+         that would require an update in our libvorbis dependency (to 1.1),
+         which is probably undesirable.
+
 2005-11-21  Jan Schmidt  <thaytan@mad.scientist.com>
 
        * ext/libvisual/visual.c: (get_buffer):
index 603ee46e0fb2a4d2af93b11c72730e9d6acd15f9..27e9cc2267935406b6daa403fabbe7c7b6aa9f8b 100644 (file)
@@ -732,10 +732,8 @@ gst_vorbisenc_setup (GstVorbisEnc * vorbisenc)
 
       vorbis_encode_ctl (&vorbisenc->vi, OV_ECTL_RATEMANAGE_GET, &ai);
 
-      /* the bitrates used by libvorbisenc are in kbit/sec, ours in bit/sec
-       * also remember that in telecom kbit/sec is 1000 bit/sec */
-      ai.bitrate_hard_min = vorbisenc->min_bitrate / 1000;
-      ai.bitrate_hard_max = vorbisenc->max_bitrate / 1000;
+      ai.bitrate_hard_min = vorbisenc->min_bitrate;
+      ai.bitrate_hard_max = vorbisenc->max_bitrate;
       ai.management_active = 1;
 
       vorbis_encode_ctl (&vorbisenc->vi, OV_ECTL_RATEMANAGE_SET, &ai);