mirror of https://github.com/mstorsjo/fdk-aac.git
Fix aacDecoder_drcExtractAndMap() am: 97a1b8140d
am: be3ff35425
* commit 'be3ff35425f026fb3714f1bd45c40aee6737fe05':
Fix aacDecoder_drcExtractAndMap()
Change-Id: I82060408eab9a8990c511af4c6be8a588d2a1b49
This commit is contained in:
commit
b762ff3e4f
|
@ -680,11 +680,7 @@ static int aacDecoder_drcExtractAndMap (
|
||||||
}
|
}
|
||||||
self->numPayloads = 0;
|
self->numPayloads = 0;
|
||||||
|
|
||||||
if (self->numThreads >= MAX_DRC_THREADS) {
|
if (self->dvbAncDataAvailable && self->numThreads < MAX_DRC_THREADS)
|
||||||
self->numThreads = MAX_DRC_THREADS - 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (self->dvbAncDataAvailable)
|
|
||||||
{ /* Append a DVB heavy compression payload thread if available. */
|
{ /* Append a DVB heavy compression payload thread if available. */
|
||||||
int bitsParsed;
|
int bitsParsed;
|
||||||
|
|
||||||
|
@ -710,10 +706,6 @@ static int aacDecoder_drcExtractAndMap (
|
||||||
|
|
||||||
/* coupling channels not supported */
|
/* coupling channels not supported */
|
||||||
|
|
||||||
if (self->numThreads >= MAX_DRC_THREADS) {
|
|
||||||
self->numThreads = MAX_DRC_THREADS - 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* check for valid threads */
|
/* check for valid threads */
|
||||||
for (thread = 0; thread < self->numThreads; thread++) {
|
for (thread = 0; thread < self->numThreads; thread++) {
|
||||||
CDrcPayload *pThreadBs = &threadBs[thread];
|
CDrcPayload *pThreadBs = &threadBs[thread];
|
||||||
|
|
Loading…
Reference in New Issue