Commit 3526ff89 authored by Tapani Pihlajakuja's avatar Tapani Pihlajakuja
Browse files

Add fix to decorrelator pointer assignment to satiate USAN.

parent c035b2c8
Loading
Loading
Loading
Loading
Loading
+20 −8
Original line number Diff line number Diff line
@@ -1746,6 +1746,14 @@ static void ivas_dirac_dec_binaural_process_output(
            /* Processing of the first / HRTF part of the binaural output. */
            for ( chB = 0; chB < numInChannels; chB++ )
            {
#ifdef MASA_AND_OBJECTS
                if ( chB < BINAURAL_CHANNELS )
                {
                    /* Decorrelator signal for TD decorrelation is stored in two input channels above the two normal inputs.
                     * It should be noted that TD decorrelation is used only in cases where numInChannels is 2. If this
                     * changes, additional adjustments are required. When using CLDFB decorrelator, we simply assign the
                     * pointers to buffers. */
#endif
                    if ( hDiracDecBin->useTdDecorr )
                    {
                        decSlotRePointer = inRe[chB + 2][slot];
@@ -1756,6 +1764,10 @@ static void ivas_dirac_dec_binaural_process_output(
                        decSlotRePointer = decSlotRe[chB];
                        decSlotImPointer = decSlotIm[chB];
                    }
#ifdef MASA_AND_OBJECTS
                }
#endif


                for ( bin = 0; bin < nBins; bin++ )
                {