Commit decf39b5 authored by Ke Zhao's avatar Ke Zhao
Browse files

Assign latency_ns the delay value in nanoseconds

parent ad1223e5
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3484,7 +3484,7 @@ ivas_error IVAS_REND_GetDelay(
    {
        if ( hIvasRend->inputsMasa[i].base.inConfig != IVAS_REND_AUDIO_CONFIG_UNKNOWN )
        {
            latency_ns = NS2SA( hIvasRend->sampleRateOut, (int32_t) ( (float) IVAS_FB_DEC_DELAY_NS + 0.5f ) );
            latency_ns = (int32_t) ( (float) IVAS_FB_DEC_DELAY_NS + 0.5f );
            max_latency_ns = max( max_latency_ns, latency_ns );
        }
    }