aboutsummaryrefslogtreecommitdiffstats
path: root/libAACenc
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2016-05-18 09:36:12 +0300
committerMartin Storsjo <martin@martin.st>2016-05-18 09:36:12 +0300
commit8fe6faf261313279879f7fbce8798f03aa63ebd5 (patch)
tree39d67cd6aa0b970eef549eb090dba17c83f26aa4 /libAACenc
parentf132ac5f3dd37f9810b40d36caaa53e0f4ecfd06 (diff)
parent8192b1a98f60cc39253c658ba1ca70a70c2e0dfa (diff)
downloadfdk-aac-8fe6faf261313279879f7fbce8798f03aa63ebd5.tar.gz
fdk-aac-8fe6faf261313279879f7fbce8798f03aa63ebd5.tar.bz2
fdk-aac-8fe6faf261313279879f7fbce8798f03aa63ebd5.zip
Merge remote-tracking branch 'aosp/master'
Diffstat (limited to 'libAACenc')
-rw-r--r--libAACenc/src/aacenc_lib.cpp2
-rw-r--r--libAACenc/src/metadata_compressor.cpp50
2 files changed, 26 insertions, 26 deletions
diff --git a/libAACenc/src/aacenc_lib.cpp b/libAACenc/src/aacenc_lib.cpp
index bb10c4f..3b641ab 100644
--- a/libAACenc/src/aacenc_lib.cpp
+++ b/libAACenc/src/aacenc_lib.cpp
@@ -1046,7 +1046,7 @@ static AACENC_ERROR aacEncInit(HANDLE_AACENCODER hAacEncoder,
}
/* Clear input buffer */
- if ( (InitFlags == AACENC_INIT_ALL) ) {
+ if ( InitFlags == AACENC_INIT_ALL ) {
FDKmemclear(hAacEncoder->inputBuffer, sizeof(INT_PCM)*hAacEncoder->nMaxAacChannels*INPUTBUFFER_SIZE);
}
diff --git a/libAACenc/src/metadata_compressor.cpp b/libAACenc/src/metadata_compressor.cpp
index 876de57..68a64ae 100644
--- a/libAACenc/src/metadata_compressor.cpp
+++ b/libAACenc/src/metadata_compressor.cpp
@@ -193,36 +193,36 @@ struct DRC_COMP {
* Profile tables.
*/
static const FIXP_DBL tabMaxBoostThr[] = {
- (FIXP_DBL)(-43<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-53<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-55<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-65<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-50<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-40<<METADATA_FRACT_BITS)
+ (FIXP_DBL)(int)((unsigned)-43<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-53<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-55<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-65<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-50<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-40<<METADATA_FRACT_BITS)
};
static const FIXP_DBL tabBoostThr[] = {
- (FIXP_DBL)(-31<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-41<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-31<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-41<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-31<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-31<<METADATA_FRACT_BITS)
+ (FIXP_DBL)(int)((unsigned)-31<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-41<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-31<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-41<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-31<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-31<<METADATA_FRACT_BITS)
};
static const FIXP_DBL tabEarlyCutThr[] = {
- (FIXP_DBL)(-26<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-21<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-26<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-21<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-26<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-20<<METADATA_FRACT_BITS)
+ (FIXP_DBL)(int)((unsigned)-26<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-21<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-26<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-21<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-26<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-20<<METADATA_FRACT_BITS)
};
static const FIXP_DBL tabCutThr[] = {
- (FIXP_DBL)(-16<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-11<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-16<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-21<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-16<<METADATA_FRACT_BITS),
- (FIXP_DBL)(-10<<METADATA_FRACT_BITS)
+ (FIXP_DBL)(int)((unsigned)-16<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-11<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-16<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-21<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-16<<METADATA_FRACT_BITS),
+ (FIXP_DBL)(int)((unsigned)-10<<METADATA_FRACT_BITS)
};
static const FIXP_DBL tabMaxCutThr[] = {
(FIXP_DBL)(4<<METADATA_FRACT_BITS),
@@ -576,7 +576,7 @@ INT FDK_DRC_Generator_Initialize(
drcComp->channels = channelMapping.nChannels;
/* Init states. */
- drcComp->smoothLevel[0] = drcComp->smoothLevel[1] = (FIXP_DBL)(-135<<METADATA_FRACT_BITS);
+ drcComp->smoothLevel[0] = drcComp->smoothLevel[1] = (FIXP_DBL)(int)((unsigned)-135<<METADATA_FRACT_BITS);
FDKmemclear(drcComp->smoothGain, sizeof(drcComp->smoothGain));
FDKmemclear(drcComp->holdCnt, sizeof(drcComp->holdCnt));