Commit 4c6d99c3 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

fix remaining split rendering warnings

parent f97d5226
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -156,6 +156,7 @@
#define FIX_887_ARRAY_SIZE_DFT_MDCT_STEREO              /* VA: Fix the definition of buffers/arrays in DFT and MDCT stereo to satisfy gcc v 11.4.0 */
#define FIX_891_PARAMUPMIX_CLEANUP                      /* Dlb: issue 891: remove unneeded code from ParamUpmix */
#define FIX_917_LCLD_WARNINGS                           /* Dlb: issue 917 and 918: fix LCLD codec warnings*/
#define FIX_SPLITREND_WARNINGS                          /* FhG: fix warnings related to split rendering observed in build jobs */

/* #################### End BE switches ################################## */

+4 −0
Original line number Diff line number Diff line
@@ -3966,7 +3966,11 @@ static ivas_error set_pcm_buffer_to_zero(
            error = IVAS_ERR_INTERNAL;
    }

#ifdef FIX_SPLITREND_WARNINGS
    return error;
#else
    return IVAS_ERR_OK;
#endif
}


+4 −0
Original line number Diff line number Diff line
@@ -2253,7 +2253,9 @@ ivas_error ivas_rend_crendProcessSubframesSplitBin(
    ivas_error error;
    float gain_lfe;
    float tmpLfeBuffer[L_FRAME48k];
#ifndef FIX_SPLITREND_WARNINGS
    float *p_bin_output[BINAURAL_CHANNELS];
#endif
    int16_t original_subframes_rendered, original_slots_rendered;
    float tmpInputBuffer[MAX_OUTPUT_CHANNELS][L_FRAME48k];
    float *p_tmpInputBuffer[MAX_OUTPUT_CHANNELS];
@@ -2328,11 +2330,13 @@ ivas_error ivas_rend_crendProcessSubframesSplitBin(

        pCombinedOrientationDataLocal = &combinedOrientationDataLocal;

#ifndef FIX_SPLITREND_WARNINGS
        /* set output channels */
        for ( i = 0; i < BINAURAL_CHANNELS; i++ )
        {
            p_bin_output[i] = output[pos_idx * BINAURAL_CHANNELS + i];
        }
#endif
        hTcBuffer->subframes_rendered = original_subframes_rendered;
        hTcBuffer->slots_rendered = original_slots_rendered;