aboutsummaryrefslogtreecommitdiffstats
path: root/libSACdec/src
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2019-10-29 13:11:02 +0100
committerJean-Michel Trivi <jmtrivi@google.com>2019-12-27 11:36:55 -0800
commit8cd3578cc62fbb9b7c7431bc6e6877da33a41e1b (patch)
tree9a5b10876b52952d3d7f1e2ca6c1c84b5f952d0e /libSACdec/src
parent7104c00b44a4c447bde18d03c8f2e9590706e339 (diff)
downloadfdk-aac-8cd3578cc62fbb9b7c7431bc6e6877da33a41e1b.tar.gz
fdk-aac-8cd3578cc62fbb9b7c7431bc6e6877da33a41e1b.tar.bz2
fdk-aac-8cd3578cc62fbb9b7c7431bc6e6877da33a41e1b.zip
Fix for OPD smoothing in USAC decoder.
Bug: 145668878 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I075e3230d53c5a848f93541a9918c5bfaf2df725
Diffstat (limited to 'libSACdec/src')
-rw-r--r--libSACdec/src/sac_bitdec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libSACdec/src/sac_bitdec.cpp b/libSACdec/src/sac_bitdec.cpp
index 4b47132..4485ccf 100644
--- a/libSACdec/src/sac_bitdec.cpp
+++ b/libSACdec/src/sac_bitdec.cpp
@@ -1610,6 +1610,10 @@ static SACDEC_ERROR mapIndexData(
} /* for( i = 0 ; i < numParameterSets; i++ ) */
if (extendFrame) {
+ if (paramType == t_IPD) {
+ llData->bsQuantCoarseXXX[numParameterSets] =
+ llData->bsQuantCoarseXXX[numParameterSets - 1];
+ }
for (band = startBand; band < stopBand; band++) {
outputDataIdx[xttIdx][numParameterSets][band] =
outputDataIdx[xttIdx][numParameterSets - 1][band];