mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-01-30 23:45:09 +01:00
Merge "Clear spatial specific config struct at the beginning of parse routines"
am: 0142f38904 Change-Id: I0e63ee92cbfb9cfec24b6e1adfb77e5929dad0e1
This commit is contained in:
commit
0ef6247c4f
@ -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…
x
Reference in New Issue
Block a user