Commit dd821543 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] VoIP mode incorrectly triggering split rendering functions for mono in first frame

parent 86d81fdd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -4092,7 +4092,13 @@ ivas_error IVAS_DEC_VoIP_GetSamples
    }

#ifdef FIX_1119_SPLIT_RENDERING_VOIP
#ifdef FIX_1419_MONO_STEREO_UMX
    if ( splitRendBits != NULL &&
         ( ( hIvasDec->mode == IVAS_DEC_MODE_EVS && hIvasDec->needNewFrame ) ||
           ( hIvasDec->mode == IVAS_DEC_MODE_IVAS && hIvasDec->hasDecodedFirstGoodFrame ) ) )
#else
    if ( hIvasDec->hasDecodedFirstGoodFrame && splitRendBits != NULL )
#endif
    {
        /* Analyse head poses over entire frame, generate ISAR metadata and maybe encode if split coded */
        if ( ( error = isar_generate_metadata_and_bitstream( st_ivas, p_head_pose_buf, *nSamplesRendered, splitRendBits ) ) != IVAS_ERR_OK )