aboutsummaryrefslogtreecommitdiffstats
path: root/libAACenc/src/aacenc_lib.cpp
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2019-09-05 16:53:26 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-09-05 16:53:26 +0000
commitd929f68a05f5cbdd812dca287c8115a39439acf1 (patch)
treefa62c4f58bc140ba5c0a27e2c913d3ea0a5bfe98 /libAACenc/src/aacenc_lib.cpp
parentc2eb64586d6dfc0f067ea66631b38d1922a106ed (diff)
parenta209adb315f970aa97044a82551a6f5617d61ded (diff)
downloadfdk-aac-d929f68a05f5cbdd812dca287c8115a39439acf1.tar.gz
fdk-aac-d929f68a05f5cbdd812dca287c8115a39439acf1.tar.bz2
fdk-aac-d929f68a05f5cbdd812dca287c8115a39439acf1.zip
Merge "DO NOT MERGE - Merge Android 10 into master"
Diffstat (limited to 'libAACenc/src/aacenc_lib.cpp')
-rw-r--r--libAACenc/src/aacenc_lib.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libAACenc/src/aacenc_lib.cpp b/libAACenc/src/aacenc_lib.cpp
index 08cd57a..0f0094f 100644
--- a/libAACenc/src/aacenc_lib.cpp
+++ b/libAACenc/src/aacenc_lib.cpp
@@ -1,7 +1,7 @@
/* -----------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
-© Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten
+© Copyright 1995 - 2019 Fraunhofer-Gesellschaft zur Förderung der angewandten
Forschung e.V. All rights reserved.
1. INTRODUCTION
@@ -1761,6 +1761,10 @@ AACENC_ERROR aacEncEncode(const HANDLE_AACENCODER hAacEncoder,
hAacEncoder->inputBuffer +
(hAacEncoder->inputBufferOffset + hAacEncoder->nSamplesRead) /
hAacEncoder->aacConfig.nChannels;
+ newSamples -=
+ (newSamples %
+ hAacEncoder->extParam
+ .nChannels); /* process multiple samples of input channels */
/* Copy new input samples to internal buffer */
if (inBufDesc->bufElSizes[idx] == (INT)sizeof(INT_PCM)) {