From f665ac21b355ebc74c951c09b4774936a74fdca0 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 4 Feb 2019 11:17:38 +0100 Subject: Double the outBufferInBytes internal buffer, for high bitrates --- libAACenc/src/aacenc_lib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libAACenc/src') 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; -- cgit v1.2.3