Commit 514a6350 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] use correct variable to check buffer config state

parent e5439ec2
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3666,7 +3666,7 @@ static ivas_error isar_pre_rend_init(


        /* If the cldfb_in_flag is different from what was previously allocated for the buffer, change the size */
        if ( pSplitRendEncBuffer->data != NULL && ( cldfb_in_flag != bufConfig.is_cldfb ) )
        if ( pSplitRendEncBuffer->data != NULL && ( cldfb_in_flag != pSplitRendEncBuffer->config.is_cldfb ) )
        {
            realloc = true;
        }
@@ -3674,9 +3674,9 @@ static ivas_error isar_pre_rend_init(
        if ( pSplitRendEncBuffer->data == NULL || realloc )
        {
            /* set buffer config */
            bufConfig.is_cldfb = cldfb_in_flag;
            bufConfig.numSamplesPerChannel = cldfb_in_flag ? MAX_CLDFB_BUFFER_LENGTH_PER_CHANNEL : L_FRAME_MAX;
            bufConfig.numChannels = BINAURAL_CHANNELS * pSplitRendWrapper->multiBinPoseData.num_poses;
            bufConfig.is_cldfb = cldfb_in_flag;
            pSplitRendEncBuffer->config = bufConfig;

            /* allocate memory */