Commit 1abaacd7 authored by norvell's avatar norvell
Browse files

Apply synch value for all isms -- resolve msan error

parent 55f0e8c9
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -8345,12 +8345,17 @@ ivas_error IVAS_REND_SetIsmMetadataDelay(
    const float sync_md_delay   /* i:   Ism Metadata Delay in ms to sync with audio delay */
)
{
    int16_t i;

    if ( hIvasRend == NULL )
    {
        return IVAS_ERR_UNEXPECTED_NULL_POINTER;
    }

    hIvasRend->inputsIsm[0].ism_metadata_delay_ms = sync_md_delay;
    for ( i = 0; i < RENDERER_MAX_ISM_INPUTS; ++i )
    {
        hIvasRend->inputsIsm[i].ism_metadata_delay_ms = sync_md_delay;
    }

    return IVAS_ERR_OK;
}