Commit aa7e0f4a authored by norvell's avatar norvell
Browse files

Add fix for JBM operation under FIX_356_ISM_METADATA_SYNC

parent ce840f88
Loading
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -125,7 +125,15 @@ void ObjRenderIVASSubframe(
    int16_t ism_md_subframe_update_jbm;
    int16_t c_indx, nS;

    ism_md_subframe_update_jbm = st_ivas->hTcBuffer->nb_subframes - 2; /* Number of subframes to delay metadata to sync with audio */
    /* Number of subframes to delay metadata to sync with audio */
    if ( st_ivas->hDecoderConfig->Opt_delay_comp )
    {
        ism_md_subframe_update_jbm = max( 0, st_ivas->hTcBuffer->nb_subframes - 3 );
    }
    else
    {
        ism_md_subframe_update_jbm = st_ivas->hTcBuffer->nb_subframes - 2;
    }

#endif
    for ( ch = 0; ch < BINAURAL_CHANNELS; ch++ )