Commit c0b21243 authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Fix BASOP issue 2524 by moving the variable zero to correct place.

parent a8ff39cd
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -129,6 +129,7 @@
#define FIX_BASOP_2513_EXTRA_RETURN_REND_OPEN           /* Nokia: BASOP issue 2513: Removes extra return block */
#define FIX_BASOP_2514_EFAP_PORTING_ERROR               /* Nokia: BASOP issue 2514: Fix wrongly ported line */
#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_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++ )
            {