VBR max bit-rate should work properly for UWB now.
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 8 Aug 2006 15:27:22 +0000 (15:27 +0000)
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>
Tue, 8 Aug 2006 15:27:22 +0000 (15:27 +0000)
git-svn-id: http://svn.xiph.org/trunk/speex@11754 0101bb08-14d6-0310-b084-bc0e0c8e3800

libspeex/sb_celp.c

index b792dfa..7d80882 100644 (file)
@@ -1445,6 +1445,8 @@ int sb_encoder_ctl(void *state, int request, void *ptr)
             } else {
                st->vbr_max_high = 1800;
             }
+            if (st->subframeSize==80)
+               st->vbr_max_high = 1800;
             low_rate = st->vbr_max - st->vbr_max_high;
             speex_encoder_ctl(st->st_low, SPEEX_SET_VBR_MAX_BITRATE, &low_rate);
          }