diff --git a/lib_com/options.h b/lib_com/options.h index 84ce770c974dd29e013a6496ffb243e927f049e0..62e5c7257d0521f90a7b9fda3e42a1f05bfa26fc 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -163,6 +163,7 @@ #define FIX_1285_RENDER_CONFIG_PTR_COMPARE /* Philips: Warning about pointer comparison in the render config reader */ #define FIX_1298_MEMORY_OPT_IVAS_CORE_ENC /* VA: issue 1298: Memory saving in ivas_core_enc() */ #define SIMPLIFY_IVAS_CORE /* VA: simplify ivas core coder functions */ +#define FIX_1301_EXTERNAL_HRTF_OSBA /* VA: issue 1301: support External HRTF loading in OSBA bitrate switching */ /* #################### End BE switches ################################## */ diff --git a/lib_dec/lib_dec.c b/lib_dec/lib_dec.c index 7640228d3bfe832e35972e513cb40dc47a3be7d6..45c2fc8befc7465ed5149c18d1bee5a45ce2ce74 100644 --- a/lib_dec/lib_dec.c +++ b/lib_dec/lib_dec.c @@ -986,6 +986,12 @@ ivas_error IVAS_DEC_ReadFormat( { *binaural_renderer_sec = IVAS_BIN_RENDERER_TYPE_TDREND; } +#ifdef FIX_1301_EXTERNAL_HRTF_OSBA + else if ( st_ivas->ivas_format == SBA_ISM_FORMAT && st_ivas->ism_mode == ISM_SBA_MODE_DISC && ( output_config == IVAS_AUDIO_CONFIG_BINAURAL || output_config == IVAS_AUDIO_CONFIG_BINAURAL_ROOM_REVERB ) ) + { + *binaural_renderer_sec = IVAS_BIN_RENDERER_TYPE_TDREND; + } +#endif *hrtf_set_audio_cfg = IVAS_AUDIO_CONFIG_INVALID; if ( *binaural_renderer == IVAS_BIN_RENDERER_TYPE_FASTCONV )