mirror of
				https://github.com/mstorsjo/fdk-aac.git
				synced 2025-06-05 22:39:13 +02:00 
			
		
		
		
	Merge "Clear spatial specific config struct at the beginning of parse routines"
This commit is contained in:
		| @@ -325,6 +325,8 @@ SACDEC_ERROR SpatialDecParseMps212Config( | |||||||
|     INT coreSbrFrameLengthIndex) { |     INT coreSbrFrameLengthIndex) { | ||||||
|   int i; |   int i; | ||||||
|  |  | ||||||
|  |   FDKmemclear(pSpatialSpecificConfig, sizeof(SPATIAL_SPECIFIC_CONFIG)); | ||||||
|  |  | ||||||
|   pSpatialSpecificConfig->stereoConfigIndex = stereoConfigIndex; |   pSpatialSpecificConfig->stereoConfigIndex = stereoConfigIndex; | ||||||
|   pSpatialSpecificConfig->coreSbrFrameLengthIndex = coreSbrFrameLengthIndex; |   pSpatialSpecificConfig->coreSbrFrameLengthIndex = coreSbrFrameLengthIndex; | ||||||
|   pSpatialSpecificConfig->freqRes = |   pSpatialSpecificConfig->freqRes = | ||||||
| @@ -447,6 +449,8 @@ SACDEC_ERROR SpatialDecParseSpecificConfig( | |||||||
|   int numHeaderBits; |   int numHeaderBits; | ||||||
|   int cfgStartPos, bitsAvailable; |   int cfgStartPos, bitsAvailable; | ||||||
|  |  | ||||||
|  |   FDKmemclear(pSpatialSpecificConfig, sizeof(SPATIAL_SPECIFIC_CONFIG)); | ||||||
|  |  | ||||||
|   cfgStartPos = FDKgetValidBits(bitstream); |   cfgStartPos = FDKgetValidBits(bitstream); | ||||||
|   /* It might be that we do not know the SSC length beforehand. */ |   /* It might be that we do not know the SSC length beforehand. */ | ||||||
|   if (sacHeaderLen == 0) { |   if (sacHeaderLen == 0) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user