From 8cd3578cc62fbb9b7c7431bc6e6877da33a41e1b Mon Sep 17 00:00:00 2001 From: Fraunhofer IIS FDK Date: Tue, 29 Oct 2019 13:11:02 +0100 Subject: Fix for OPD smoothing in USAC decoder. Bug: 145668878 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I075e3230d53c5a848f93541a9918c5bfaf2df725 --- libSACdec/src/sac_bitdec.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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]; -- cgit v1.2.3