diff options
author | Fraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de> | 2019-05-15 08:59:10 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-05-15 08:59:10 -0700 |
commit | 9524549fbf76c38d4e79772b8c84de48c80d1c26 (patch) | |
tree | 51940bd211765d56c26670b6a1ef0078202db474 | |
parent | b1dbb88c464317c3f51c0ec6fccad9b35ab45d5c (diff) | |
parent | 89ca476e525187ca01bca3cfd87785d860e7bde8 (diff) | |
download | fdk-aac-9524549fbf76c38d4e79772b8c84de48c80d1c26.tar.gz fdk-aac-9524549fbf76c38d4e79772b8c84de48c80d1c26.tar.bz2 fdk-aac-9524549fbf76c38d4e79772b8c84de48c80d1c26.zip |
Fetch multiple samples of input channels from encoder input buffer.
am: 89ca476e52
Change-Id: Id07ef57824ea774e37fdeb150e08a068135136a9
-rw-r--r-- | libAACenc/src/aacenc_lib.cpp | 6 |
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)) { |