From 94c54edd8c41e024aff4cb18afefd3ce9ae00795 Mon Sep 17 00:00:00 2001 From: vaclav Date: Tue, 9 May 2023 08:41:05 +0000 Subject: [PATCH 1/2] Update lib_dec.c --- lib_dec/lib_dec.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib_dec/lib_dec.c b/lib_dec/lib_dec.c index ee315bf399..076c0dc96e 100644 --- a/lib_dec/lib_dec.c +++ b/lib_dec/lib_dec.c @@ -1238,6 +1238,14 @@ ivas_error IVAS_DEC_GetDelay( nSamples[2] = (int16_t) roundf( (float) st_ivas->binaural_latency_ns * hDecoderConfig->output_Fs / 1000000000.f ); nSamples[0] = nSamples[1] + nSamples[2]; +#ifdef FIX_MASA_DELAY_PRINTOUT + if ( st_ivas->ivas_format == MASA_FORMAT ) + { + /* note: in MASA, all delay is compensated at the decoder by default, so subtract the encoder delay for print-out */ + nSamples[1] -= NS2SA( hDecoderConfig->output_Fs, IVAS_ENC_DELAY_NS ); + } +#endif + *timeScale = hDecoderConfig->output_Fs; return IVAS_ERR_OK; -- GitLab From 283c897f8f668c331d887a088c5a6084dfeba1ee Mon Sep 17 00:00:00 2001 From: vaclav Date: Tue, 9 May 2023 08:42:02 +0000 Subject: [PATCH 2/2] Update options.h --- lib_com/options.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib_com/options.h b/lib_com/options.h index 1429f24a75..26d6469c72 100755 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -177,6 +177,8 @@ #define FIX_357_DTX_32K /* Eri: issue 357 - Forced LP-CNG at 32k */ #define FIX_435_ISM_MERGE_BUG /* Eri: Merge bug fix for ISM NULL metadata and tcx_only cases */ #define FIX_355_REFACTOR_PARAMBIN_TO_5MS /* Nokia: Fixes issue 355 by refactoring parametric binauralizer code to 5 ms mode */ +#define FIX_MASA_DELAY_PRINTOUT /* VA: issue 444: fix MASA decoder delay printout */ + /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ -- GitLab