diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-12-29 14:12:59 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-12-29 14:12:59 +0000 |
commit | 0142f389049f4f291908af7812d83d959ea52b48 (patch) | |
tree | 23119deece54255ff25a8f1db6c124cf65fe9083 /libSACdec | |
parent | f8881d4bfeb0027c6da646a85f4235e3044da028 (diff) | |
parent | 80fa8b8067dc7e92f8d70cf0a2fe7c7c65555409 (diff) | |
download | fdk-aac-0142f389049f4f291908af7812d83d959ea52b48.tar.gz fdk-aac-0142f389049f4f291908af7812d83d959ea52b48.tar.bz2 fdk-aac-0142f389049f4f291908af7812d83d959ea52b48.zip |
Merge "Clear spatial specific config struct at the beginning of parse routines"
Diffstat (limited to 'libSACdec')
-rw-r--r-- | libSACdec/src/sac_bitdec.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libSACdec/src/sac_bitdec.cpp b/libSACdec/src/sac_bitdec.cpp index 45fb17a..159cf84 100644 --- a/libSACdec/src/sac_bitdec.cpp +++ b/libSACdec/src/sac_bitdec.cpp @@ -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) { |