Commit 29bb6486 authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Merge branch 'basop-2524-corrupted-accumulation-in-reduce_metadata_further_fx' into 'main'

[non-BE] [allow-regression] Resolve "Corrupted accumulation in reduce_metadata_further_fx"

Closes #2524

See merge request !2938
parents a599c3b5 e93f16e5
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -110,6 +110,7 @@
#define FIX_BASOP_2516_REND_CUSTOM_LAYOUT_PORT_BUG      /* Nokia: BASOP issue 2516: Fix porting bug in setting planar state for custom layout in renderer */
#define FIX_FLOAT_1569_REND_RENDER_CONFIG_CHECKS        /* Nokia: float issue 1569: fix render config checks in renderer */
#define FIX_BASOP_2526_SPAR_MASA_PARAM_MAP_Q_BUG        /* Nokia: BASOP issue 2526: Fix wrong Q variable in SPAR to MASA param mapping */
#define FIX_BASOP_2524_MASA_REDUCE_META_BUG             /* Nokia: BASOP issue 2524: Fix wrong reset of W_tmp in reduce_metadata_further_fx */

/* ##################### End NON-BE switches ########################### */

+8 −0
Original line number Diff line number Diff line
@@ -2579,18 +2579,26 @@ static void reduce_metadata_further_fx(
        Word32 x, y, z;
        Word32 veclen, L_tmp;

#ifndef FIX_BASOP_2524_MASA_REDUCE_META_BUG
        W_tmp = 0;
        move64();
#endif
        FOR( band = 0; band < numCodingBands; band++ )
        {
            xSum = 0;
            ySum = 0;
            zSum = 0;
#ifndef FIX_BASOP_2524_MASA_REDUCE_META_BUG
            bandSumEnergy = 0;
            move32();
#endif
            move32();
            move32();
            move32();
#ifdef FIX_BASOP_2524_MASA_REDUCE_META_BUG
            W_tmp = 0;
            move64();
#endif

            FOR( sf = 0; sf < MAX_PARAM_SPATIAL_SUBFRAMES; sf++ )
            {