diff --git a/CMakeLists.txt b/CMakeLists.txt index 435773d7bcf9b7064062d3e0f5486e003182b55c..08b444139bb6e23c9b17f5a755290a3dbbb2485e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -208,8 +208,7 @@ endif() if(INCLUDE_SPLIT) if(NOT WMOPS) - file(GLOB unitTestIvasLc3plusSrcs "scripts/split_rendering/lc3plus/*.c") - add_executable(ivas_lc3plus_unit_test ${unitTestIvasLc3plusSrcs}) + add_executable(ivas_lc3plus_unit_test ${CMAKE_SOURCE_DIR}/scripts/split_rendering/lc3plus/ivas_lc3plus_unit_test.c) target_link_libraries(ivas_lc3plus_unit_test lib_rend lib_dec lib_util lib_com lib_debug) endif() endif() diff --git a/lib_com/options.h b/lib_com/options.h index 36ecfcd3b1769b43cdbb47ddcb249146f2e2202b..a4c1336c8141bee30f2efb55841ecb86553aa470 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -157,6 +157,7 @@ #define FIX_891_PARAMUPMIX_CLEANUP /* Dlb: issue 891: remove unneeded code from ParamUpmix */ #define FIX_917_LCLD_WARNINGS /* Dlb: issue 917 and 918: fix LCLD codec warnings*/ #define FIX_920_IGF_INIT_ERROR /* FhG: issue 920: fix bitrate mismatch in initial IGF config to avoid error message in same cases */ +#define FIX_SPLITREND_WARNINGS /* FhG: fix warnings related to split rendering observed in build jobs */ #define FIX_923_EXTERNAL_REND_COMMAND_LINE /* VA: issue 923: enable external renderer command-line options in UPPER case letters */ #define FIX_921_OMASA_DELAY_PRINTOUT /* VA: issue 921: correct OMASA decoder delay printout */ diff --git a/lib_dec/lib_dec.c b/lib_dec/lib_dec.c index e0fe15aec402b011e3f7f2fcedb4fbda20cdc71b..a665d3ea8751b033d0ecb43196d029e90251232f 100644 --- a/lib_dec/lib_dec.c +++ b/lib_dec/lib_dec.c @@ -3970,7 +3970,11 @@ static ivas_error set_pcm_buffer_to_zero( error = IVAS_ERR_INTERNAL; } +#ifdef FIX_SPLITREND_WARNINGS + return error; +#else return IVAS_ERR_OK; +#endif } diff --git a/lib_rend/ivas_crend.c b/lib_rend/ivas_crend.c index 1d7bebf5b85622cf5093978f401d71b9f2cb399d..2b160d46257dae3a9cbcaad847032bb89453ae2f 100644 --- a/lib_rend/ivas_crend.c +++ b/lib_rend/ivas_crend.c @@ -2253,7 +2253,9 @@ ivas_error ivas_rend_crendProcessSubframesSplitBin( ivas_error error; float gain_lfe; float tmpLfeBuffer[L_FRAME48k]; +#ifndef FIX_SPLITREND_WARNINGS float *p_bin_output[BINAURAL_CHANNELS]; +#endif int16_t original_subframes_rendered, original_slots_rendered; float tmpInputBuffer[MAX_OUTPUT_CHANNELS][L_FRAME48k]; float *p_tmpInputBuffer[MAX_OUTPUT_CHANNELS]; @@ -2328,11 +2330,13 @@ ivas_error ivas_rend_crendProcessSubframesSplitBin( pCombinedOrientationDataLocal = &combinedOrientationDataLocal; +#ifndef FIX_SPLITREND_WARNINGS /* set output channels */ for ( i = 0; i < BINAURAL_CHANNELS; i++ ) { p_bin_output[i] = output[pos_idx * BINAURAL_CHANNELS + i]; } +#endif hTcBuffer->subframes_rendered = original_subframes_rendered; hTcBuffer->slots_rendered = original_slots_rendered; diff --git a/scripts/split_rendering/lc3plus/ivas_lc3plus_unit_test_selective_decoding.c b/scripts/split_rendering/lc3plus/ivas_lc3plus_unit_test_selective_decoding.c index afbcf9bd0d981bcb00781e12676bbf46b5e54533..d7eb5daf6735e6055418f474a6f0aab9a6055834 100644 --- a/scripts/split_rendering/lc3plus/ivas_lc3plus_unit_test_selective_decoding.c +++ b/scripts/split_rendering/lc3plus/ivas_lc3plus_unit_test_selective_decoding.c @@ -1242,6 +1242,7 @@ static int scenario_per_subframe_switches_dec_first( return IVAS_ERR_OK; } +#ifdef LC3PLUS_DEC_ALLOW_DISABLE_CACHING /* * Step1: * in: [dec, dec, skip, skip] @@ -1428,7 +1429,7 @@ static int scenario_per_subframe_switches_dec_first_no_caching( IVAS_LC3PLUS_DEC_FreeSubframeDecodingMatrix( selective_decoding_matrix ); return IVAS_ERR_OK; } - +#endif /* * Step1: @@ -1922,6 +1923,7 @@ static int selectiveDecIvas20msLc3plus5ms_48kHz_scenario_per_subframe_bundle_swi return err; } +#ifdef LC3PLUS_DEC_ALLOW_DISABLE_CACHING static int selectiveDecIvas20msLc3plus5ms_48kHz_scenario_per_subframe_switches_dec_first_no_caching( void ) { int err = 0; @@ -1934,7 +1936,7 @@ static int selectiveDecIvas20msLc3plus5ms_48kHz_scenario_per_subframe_switches_d } return err; } - +#endif static int selectiveDecIvas20msLc3plus5ms_48kHz_scenario_get_active_dont_cache( void ) {