From d24d913eb3f0074d1757ff0f67cb4f659f8e7eac Mon Sep 17 00:00:00 2001 From: Dominik Weckbecker Date: Tue, 30 May 2023 15:30:35 +0200 Subject: [PATCH] increase maximum number of metadata indices for SBA at 384 and 512 kbps --- lib_com/bitstream.c | 8 ++++++++ lib_com/options.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/lib_com/bitstream.c b/lib_com/bitstream.c index dcd1b71684..c07282dbe3 100755 --- a/lib_com/bitstream.c +++ b/lib_com/bitstream.c @@ -780,11 +780,19 @@ int16_t get_ivas_max_num_indices_metadata( /* o } else if ( ivas_total_brate <= IVAS_384k ) { +#ifdef FIX_509 + return 2000; +#else return 1500; +#endif } else { +#ifdef FIX_509 + return 2500; +#else return 2000; +#endif } } else if ( ivas_format == MASA_FORMAT ) diff --git a/lib_com/options.h b/lib_com/options.h index 3c714b64e0..1d40994974 100755 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -224,6 +224,9 @@ #define FIX_483b /* FhG: fix issue 483, uninitialized values in ivas_mct_core_enc */ #define FIX_170_DTX_MASA /* Nokia: Fix issue 170, relaxing the use of DTX in MASA format */ +#define FIX_509 /* FhG: fix issue 509, too low number of bitsream indices in SBA */ + + /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ -- GitLab