From ac10ac25317d2027e21b1390054e47201e7aec98 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 16 Sep 2020 10:15:54 +0200 Subject: Update fdk-aac This corresponds to 9718203 in https://github.com/Opendigitalradio/fdk-aac --- fdk-aac/libAACenc/src/aacenc_lib.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fdk-aac/libAACenc/src/aacenc_lib.cpp') diff --git a/fdk-aac/libAACenc/src/aacenc_lib.cpp b/fdk-aac/libAACenc/src/aacenc_lib.cpp index aaa6c74..4eaa662 100644 --- a/fdk-aac/libAACenc/src/aacenc_lib.cpp +++ b/fdk-aac/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 @@ -1822,6 +1822,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)) { -- cgit v1.2.3