Commit 077f5849 authored by multrus's avatar multrus
Browse files

fix initialization of hDirAC->block_grouping in case of BR switching

parent c864d68d
Loading
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -247,8 +247,21 @@ ivas_error ivas_dirac_enc_reconfigure(


    /* :TODO: if the number of parameter bands change, do a meaningful mapping of parameter buffers from old to new band setting */
#ifdef LBR_SBA_DIRAC_FIX 

    if ( st_ivas->hQMetaData->useLowerRes )
    {
        hDirAC->block_grouping[0] = 0;
        hDirAC->block_grouping[1] = MAX_PARAM_SPATIAL_SUBFRAMES;
    }
    else
    {
        mvs2s( DirAC_block_grouping_5ms_MDFT, hDirAC->block_grouping, MAX_PARAM_SPATIAL_SUBFRAMES + 1 );
    }
#else

    mvs2s( DirAC_block_grouping, hDirAC->block_grouping, MAX_PARAM_SPATIAL_SUBFRAMES + 1 );
#endif

    return error;
}