aboutsummaryrefslogtreecommitdiffstats
path: root/libAACenc
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-02-04 11:17:38 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-02-04 11:17:38 +0100
commitf665ac21b355ebc74c951c09b4774936a74fdca0 (patch)
tree13480b355f5debcc7e6b1723867ba07b798f362a /libAACenc
parentbdfafd471e3c7c240b5c78e8d1233ce61f17c296 (diff)
downloadfdk-aac-f665ac21b355ebc74c951c09b4774936a74fdca0.tar.gz
fdk-aac-f665ac21b355ebc74c951c09b4774936a74fdca0.tar.bz2
fdk-aac-f665ac21b355ebc74c951c09b4774936a74fdca0.zip
Double the outBufferInBytes internal buffer, for high bitrates
Diffstat (limited to 'libAACenc')
-rw-r--r--libAACenc/src/aacenc_lib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libAACenc/src/aacenc_lib.cpp b/libAACenc/src/aacenc_lib.cpp
index 220830a..1e70daa 100644
--- a/libAACenc/src/aacenc_lib.cpp
+++ b/libAACenc/src/aacenc_lib.cpp
@@ -1620,7 +1620,7 @@ AACENC_ERROR aacEncOpen(HANDLE_AACENCODER *phAacEncoder, const UINT encModules,
hAacEncoder->outBufferInBytes =
1 << (DFRACT_BITS - CntLeadingZeros(fixMax(
1, ((1) * hAacEncoder->nMaxAacChannels * 6144) >>
- 3))); /* buffer has to be 2^n */
+ 2))); /* buffer has to be 2^n */
if (NULL == (hAacEncoder->outBuffer = (UCHAR *)FDKcalloc(
hAacEncoder->outBufferInBytes, sizeof(UCHAR)))) {
err = AACENC_MEMORY_ERROR;