summaryrefslogtreecommitdiffstats
path: root/libAACenc/src
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2012-06-30 10:22:40 +0300
committerMartin Storsjo <martin@martin.st>2012-07-11 14:28:03 +0300
commitb431d100a3582652dfd11b2e08ffb6c8f05bfd41 (patch)
treeba0fa86f59fd0834842cf60e681767e10372e0ea /libAACenc/src
parent7e5a3465a8ddaa7d1df8f2f9880f5e85362b13d1 (diff)
downloadfdk-aac-b431d100a3582652dfd11b2e08ffb6c8f05bfd41.tar.gz
fdk-aac-b431d100a3582652dfd11b2e08ffb6c8f05bfd41.tar.bz2
fdk-aac-b431d100a3582652dfd11b2e08ffb6c8f05bfd41.zip
Allow setting bitrate modes 1-5 too
These correspond to different VBR modes.
Diffstat (limited to 'libAACenc/src')
-rw-r--r--libAACenc/src/aacenc_lib.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libAACenc/src/aacenc_lib.cpp b/libAACenc/src/aacenc_lib.cpp
index cbb0e2a..6cd1f80 100644
--- a/libAACenc/src/aacenc_lib.cpp
+++ b/libAACenc/src/aacenc_lib.cpp
@@ -1599,6 +1599,11 @@ AACENC_ERROR aacEncoder_SetParam(
if (settings->userBitrateMode != value) {
switch ( value ) {
case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
case 8:
settings->userBitrateMode = value;
hAacEncoder->InitFlags |= AACENC_INIT_CONFIG | AACENC_INIT_TRANSPORT;