Skip to content

Delay compensation of IVAS_rend with MASA input format

Basic info

  • Commit SHA: ad1223e5 (latest commit on main branch)

Bug description

The IVAS_rend external renderer for the MASA input format appears to have an issue with delay compensation. Specifically, in lib_rend/lib_rend.c line 3487, it appears that latency_ns is assigned the delay in samples rather than in nanoseconds.

latency_ns = NS2SA( hIvasRend->sampleRateOut, (int32_t) ( (float) IVAS_FB_DEC_DELAY_NS + 0.5f ) );

Proposed Fix

A potential fix is to remove the calling of NS2SA() and directly assign the delay in nanoseconds to latency_ns.

latency_ns = (int32_t) ( (float) IVAS_FB_DEC_DELAY_NS + 0.5f );