mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-01-23 20:30:43 +01:00
Clear spatial specific config struct at the beginning of parse routines
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I6e198942f3a065de9615eac544fdc73120d24b1e
This commit is contained in:
parent
b9f1b6dec0
commit
80fa8b8067
@ -325,6 +325,8 @@ SACDEC_ERROR SpatialDecParseMps212Config(
|
||||
INT coreSbrFrameLengthIndex) {
|
||||
int i;
|
||||
|
||||
FDKmemclear(pSpatialSpecificConfig, sizeof(SPATIAL_SPECIFIC_CONFIG));
|
||||
|
||||
pSpatialSpecificConfig->stereoConfigIndex = stereoConfigIndex;
|
||||
pSpatialSpecificConfig->coreSbrFrameLengthIndex = coreSbrFrameLengthIndex;
|
||||
pSpatialSpecificConfig->freqRes =
|
||||
@ -447,6 +449,8 @@ SACDEC_ERROR SpatialDecParseSpecificConfig(
|
||||
int numHeaderBits;
|
||||
int cfgStartPos, bitsAvailable;
|
||||
|
||||
FDKmemclear(pSpatialSpecificConfig, sizeof(SPATIAL_SPECIFIC_CONFIG));
|
||||
|
||||
cfgStartPos = FDKgetValidBits(bitstream);
|
||||
/* It might be that we do not know the SSC length beforehand. */
|
||||
if (sacHeaderLen == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user