Commit 52a3bf82 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix use-of-uninitialized value error in MC bitrate switching

parent fa85b99b
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -339,7 +339,11 @@ ivas_error ivas_param_mc_enc_reconfig(
    /* parameter band grouping: 60 band CLDFB to 240 band MDFT resolution */
    for ( i = 0; i < hParamMC->hMetadataPMC.num_parameter_bands + 1; i++ )
    {
#ifdef PARAMMC_SHORT_ENC_MDFT
        hParamMC->band_grouping[i] *= PARAM_MC_CLDFB_TO_MDFT_FAC;
#else
        hParamMC->band_grouping[i] *= CLDFB_TO_MDFT_FAC;
#endif
    }

    /* set correct coded band width */