aboutsummaryrefslogtreecommitdiffstats
path: root/libAACenc/src/psy_configuration.cpp
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2016-04-05 17:43:33 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-04-05 17:43:33 +0000
commit65750eae6583754ea9d84fed41dc12d1fc3d73d0 (patch)
treea8dc54ef8dba931c72627e7bbebf1844b81a31f7 /libAACenc/src/psy_configuration.cpp
parent0713b4acff1a489e7d49725dc7c5e3dad370b5c8 (diff)
parente1c78ed73faa51f2c7fcb0c4a17a92be9cc747f5 (diff)
downloadfdk-aac-65750eae6583754ea9d84fed41dc12d1fc3d73d0.tar.gz
fdk-aac-65750eae6583754ea9d84fed41dc12d1fc3d73d0.tar.bz2
fdk-aac-65750eae6583754ea9d84fed41dc12d1fc3d73d0.zip
SBR/AAC encoder updates, code clean up
am: e1c78ed * commit 'e1c78ed73faa51f2c7fcb0c4a17a92be9cc747f5': SBR/AAC encoder updates, code clean up Change-Id: I908adc47823de593c3e258c67f360da9321780f5
Diffstat (limited to 'libAACenc/src/psy_configuration.cpp')
-rw-r--r--libAACenc/src/psy_configuration.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libAACenc/src/psy_configuration.cpp b/libAACenc/src/psy_configuration.cpp
index 4393fa1..9a72c68 100644
--- a/libAACenc/src/psy_configuration.cpp
+++ b/libAACenc/src/psy_configuration.cpp
@@ -2,7 +2,7 @@
/* -----------------------------------------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
-© Copyright 1995 - 2013 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
+© Copyright 1995 - 2015 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
All rights reserved.
1. INTRODUCTION
@@ -634,13 +634,14 @@ AAC_ENCODER_ERROR FDKaacEnc_InitPsyConfiguration(INT bitrate,
if (psyConf->sfbOffset[sfb] >= psyConf->lowpassLine)
break;
}
- psyConf->sfbActive = sfb;
+ psyConf->sfbActive = FDKmax(sfb, 1);
for (sfb = 0; sfb < psyConf->sfbCnt; sfb++){
if (psyConf->sfbOffset[sfb] >= psyConf->lowpassLineLFE)
break;
}
psyConf->sfbActiveLFE = sfb;
+ psyConf->sfbActive = FDKmax(psyConf->sfbActive, psyConf->sfbActiveLFE);
/* calculate minSnr */
FDKaacEnc_initMinSnr(bitrate,