diff --git a/lib_com/options.h b/lib_com/options.h index f7ee9e9c7c2917dec1ec1273a8f5d90ad3c11084..ffde84d5d335b948a22a3196777807c73012bd40 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -214,6 +214,8 @@ #define FIX_STEREO_474 /* FhG fix for issue 574, crash with SBA to stereo output at 512 kbps */ +#define FIX_DIRAC_LS_SYNTHESIS_CONFIG_479 /* FhG: fix for issue 479, broken LS output with DirAC at high BRs */ + /* ################## End DEVELOPMENT switches ######################### */ /* clang-format on */ diff --git a/lib_dec/ivas_dirac_dec.c b/lib_dec/ivas_dirac_dec.c index c5485119ba67ad4b86a52602b732b5b63119e1fa..2801c9c14670057508a905b4e56782277c9c887a 100644 --- a/lib_dec/ivas_dirac_dec.c +++ b/lib_dec/ivas_dirac_dec.c @@ -526,7 +526,11 @@ ivas_error ivas_dirac_dec_config( } - if ( nchan_transport_orig > 2 && hDirAC->hOutSetup.is_loudspeaker_setup && st_ivas->renderer_type == RENDERER_DIRAC ) + if ( nchan_transport_orig > 2 && hDirAC->hOutSetup.is_loudspeaker_setup && st_ivas->renderer_type == RENDERER_DIRAC +#ifdef FIX_DIRAC_LS_SYNTHESIS_CONFIG + && !ivas_get_hodirac_flag( ivas_total_brate, st_ivas->sba_analysis_order ) +#endif + ) { hDirAC->synthesisConf = DIRAC_SYNTHESIS_PSD_LS; hDirAC->panningConf = DIRAC_PANNING_VBAP;