Commit 3d3cc22c authored by sagnowski's avatar sagnowski
Browse files

Ensure splitRendBits is not NULL when outputting to split rendering config

parent ce4f93c0
Loading
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -3750,7 +3750,14 @@ ivas_error IVAS_DEC_VoIP_GetSamples
        return IVAS_ERR_WRONG_PARAMS;
    }

#ifndef FIX_1119_SPLIT_RENDERING_VOIP
#ifdef FIX_1119_SPLIT_RENDERING_VOIP
    if ( ( hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM ||
        hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED ) &&
        splitRendBits == NULL )
    {
        return IVAS_ERR_UNEXPECTED_NULL_POINTER;
    }
#else
    if ( hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_PCM ||
         hDecoderConfig->output_config == IVAS_AUDIO_CONFIG_BINAURAL_SPLIT_CODED )
    {