mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-02-11 09:00:39 +01:00
Solve potential dereference of null pointers in factorCLD().
Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I27334567d1887755d62fadf2456fd5366869cbab
This commit is contained in:
parent
572f59359a
commit
0be235952d
@ -1586,9 +1586,9 @@ static SACDEC_ERROR mapIndexData(
|
||||
for (ps = 0; ps < numParameterSets; ps++) {
|
||||
if (quantMode && (paramType == t_CLD)) {
|
||||
if (pOttVsTotDbIn == 0) return MPS_WRONG_OTT;
|
||||
if ((pOttVsTotDb1 == 0) && (ottVsTotDbMode == ottVsTotDb1Activ))
|
||||
if ((pOttVsTotDb1 == 0) && (ottVsTotDbMode & ottVsTotDb1Activ))
|
||||
return MPS_WRONG_OTT;
|
||||
if ((pOttVsTotDb2 == 0) && (ottVsTotDbMode == ottVsTotDb2Activ))
|
||||
if ((pOttVsTotDb2 == 0) && (ottVsTotDbMode & ottVsTotDb2Activ))
|
||||
return MPS_WRONG_OTT;
|
||||
|
||||
for (pb = startBand; pb < stopBand; pb++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user