mirror of https://github.com/mstorsjo/fdk-aac.git
Fetch multiple samples of input channels from encoder input buffer.
am: 89ca476e52
Change-Id: I7cde3746816d1d9ecfacae91a367d34cc545c009
This commit is contained in:
commit
53c7705c79
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue