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