mirror of https://github.com/mstorsjo/fdk-aac.git
Clear config in case of parsing error in drcDec_readUniDrc()
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Ic1a12cbd31aa51d8a89bc4d6a67f9b0289265b6c
This commit is contained in:
parent
f164a97189
commit
c2e0dfe237
|
@ -185,10 +185,18 @@ drcDec_readUniDrc(HANDLE_FDK_BITSTREAM hBs, HANDLE_UNI_DRC_CONFIG hUniDrcConfig,
|
|||
uniDrcConfigPresent = FDKreadBits(hBs, 1);
|
||||
if (uniDrcConfigPresent) {
|
||||
err = drcDec_readUniDrcConfig(hBs, hUniDrcConfig);
|
||||
if (err) return err;
|
||||
if (err) {
|
||||
/* clear config, if parsing error occured */
|
||||
FDKmemclear(hUniDrcConfig, sizeof(UNI_DRC_CONFIG));
|
||||
hUniDrcConfig->diff = 1;
|
||||
}
|
||||
}
|
||||
err = drcDec_readLoudnessInfoSet(hBs, hLoudnessInfoSet);
|
||||
if (err) return err;
|
||||
if (err) {
|
||||
/* clear config, if parsing error occured */
|
||||
FDKmemclear(hLoudnessInfoSet, sizeof(LOUDNESS_INFO_SET));
|
||||
hLoudnessInfoSet->diff = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (hUniDrcGain != NULL) {
|
||||
|
|
Loading…
Reference in New Issue