From c06bb5d9926098311823d49178cab54eaec89df2 Mon Sep 17 00:00:00 2001 From: Tapani Pihlajakuja Date: Tue, 8 Aug 2023 08:23:06 +0000 Subject: [PATCH] Fix issue 673. Update the metadata in the third subframe also in OMASA to account for the audio delay, in order to have the correct audio-metadata sync. --- lib_com/options.h | 2 +- lib_dec/ivas_objectRenderer_internal.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib_com/options.h b/lib_com/options.h index 07d9d40355..b237b351a8 100755 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -217,7 +217,7 @@ #define FIX_613_DIRAC_NULL_PTR_USAN /* Nokia: Issue #613: USAN in DirAC decoder setup */ #define MASA_AND_OBJECTS /* Nokia: Combination of MASA and objects */ - +#define FIX_673_OMASA_OBJ_MD_SYNC /* Nokia: Fix issue 673 by updating metadata in the third subframe to account for audio delay. */ /* ################## End BE DEVELOPMENT switches ######################### */ diff --git a/lib_dec/ivas_objectRenderer_internal.c b/lib_dec/ivas_objectRenderer_internal.c index 497ae240f2..b2d7f3f4b5 100644 --- a/lib_dec/ivas_objectRenderer_internal.c +++ b/lib_dec/ivas_objectRenderer_internal.c @@ -110,7 +110,11 @@ ivas_error ivas_td_binaural_renderer( #ifdef MASA_AND_OBJECTS if ( st_ivas->ivas_format == MASA_ISM_FORMAT ) { +#ifdef FIX_673_OMASA_OBJ_MD_SYNC + ism_md_subframe_update = 2; +#else ism_md_subframe_update = 0; // ToDo (for Mikko-Ville): verify whether it should not be 2 +#endif } #endif -- GitLab