mirror of https://github.com/mstorsjo/fdk-aac.git
Move array definition out of for loop in MPEG-D DRC _skipEqInstructions().
Bug: 145669488 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Icb71fb1cb8e0b64ae969276d08746f687a753467
This commit is contained in:
parent
5357a4411a
commit
7104c00b44
|
@ -1018,6 +1018,7 @@ static DRC_ERROR _skipEqInstructions(HANDLE_FDK_BITSTREAM hBs,
|
|||
int additionalDrcSetIdPresent, additionalDrcSetIdCount;
|
||||
int dependsOnEqSetPresent, eqChannelGroupCount, tdFilterCascadePresent,
|
||||
subbandGainsPresent, eqTransitionDurationPresent;
|
||||
UCHAR eqChannelGroupForChannel[8];
|
||||
|
||||
FDKpushFor(hBs, 6); /* eqSetId */
|
||||
FDKpushFor(hBs, 4); /* eqSetComplexityLevel */
|
||||
|
@ -1067,7 +1068,6 @@ static DRC_ERROR _skipEqInstructions(HANDLE_FDK_BITSTREAM hBs,
|
|||
|
||||
eqChannelGroupCount = 0;
|
||||
for (c = 0; c < channelCount; c++) {
|
||||
UCHAR eqChannelGroupForChannel[8];
|
||||
int newGroup = 1;
|
||||
if (c >= 8) return DE_MEMORY_ERROR;
|
||||
eqChannelGroupForChannel[c] = FDKreadBits(hBs, 7);
|
||||
|
|
Loading…
Reference in New Issue