Commit cc69948e authored by TYAGIRIS's avatar TYAGIRIS
Browse files

crash fix with 5_1 input

parent 923d397d
Loading
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -7169,11 +7169,6 @@ static ivas_error renderMcToSplitBinaural(
    CREND_HANDLE hCrend;
    IVAS_QUATERNION Quaternions_orig[MAX_PARAM_SPATIAL_SUBFRAMES], Quaternions_abs;
    Word16 q_fact_orig;
#ifdef SPLIT_REND_WITH_HEAD_ROT
    hCrend = mcInput->crendWrapper->hCrend[0];
#else
    hCrend = mcInput->crendWrapper->hCrend;
#endif

    push_wmops( "renderMcToSplitBinaural" );
    inConfig = mcInput->base.inConfig;
@@ -7289,6 +7284,11 @@ static ivas_error renderMcToSplitBinaural(
        }
        ELSE
        {
#ifdef SPLIT_REND_WITH_HEAD_ROT
            hCrend = mcInput->crendWrapper->hCrend[0];
#else
            hCrend = mcInput->crendWrapper->hCrend;
#endif
            /* crend processing overview:
             *  1. rotateFrameMc: inputBuffer to tmpRotBuffer
             *  2. crend_process: tmpRotBuffer to tmpRendBuffer