Commit 7bf4f6d7 authored by advasila's avatar advasila
Browse files

fix usan error in masa config for omasa cases

parent 265c846a
Loading
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -256,7 +256,15 @@ void ivas_masa_set_coding_config(
        if ( ivas_total_brate <= ivas_brate_tbl[i + SIZE_IVAS_BRATE_TBL - IVAS_NUM_ACTIVE_BRATES] )
        {
            int16_t idx_bands;
            if ( ivas_total_brate < IVAS_48k && nchan_transport == 2 && i > 3 )
            {
                /* because it uses the bitallocation for the lower bit rates from 'masa_bits_LR_stereo' and it has 4 elements */
                idx_bands = 3;
            }
            else
            {
                idx_bands = i;
            }

            if ( config->numberOfDirections > 1 )
            {