Commit 394b1e3c authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Fix for 3GPP issue 1169: Assert in reduce_metadata_further_fx for MASA selection test input

Link #1169
parent d3e377c6
Loading
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -2364,7 +2364,16 @@ static void reduce_metadata_further_fx(
        }
    }

    tmp2 = W_norm( W_tmp );
    IF( W_tmp != 0 )
    {
        tmp2 = sub( W_norm( W_tmp ), 1 ); // Usage of guard bits to avoid the large values of onset_detector in multiplication
    }
    ELSE
    {
        tmp2 = 0;
        move16();
    }

    tmp2 = s_min( 32, tmp2 );
    totalEnergySum = W_extract_h( W_shl( W_tmp, tmp2 ) );
    tmp2 = sub( tmp2, 32 );