diff --git a/lib_com/options.h b/lib_com/options.h index 0d417a8f843db91830c40c1145c9e909c9e73e0d..964382c3770b6aa8ed1b5e19d1f6102011865887 100644 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -181,7 +181,7 @@ #define NONBE_FIX_802_PARAMUPMIX_HIGHPASS /* Dlb: issue 802: Move HighPass filter operation for ParamUpmix */ #define NONBE_FIX_809_EXTERNAL_TARGET_INTERPOLATION /* FhG: issue 809: unify external target interpolation inter and intra frame behaviour */ #define NONBE_FIX_775_OSBA_BR_SWITCHING_CRASH /* FhG: issue 775: fix crash in OSBA with bitrate switching and output order lower than input order */ - +#define NONBE_FIX_827_JBM_CREND_EARLY_REFLECTIONS /* FhG: issue #827: Resolve "JBM Crend early reflections are wrong" */ #define JBM_FOR_OSBA /* FhG: implement OSBA format in the JBM path */ #ifdef JBM_FOR_OSBA #define OSBA_ROOM_IR diff --git a/lib_rend/ivas_crend.c b/lib_rend/ivas_crend.c index 3a97128355bd85139f0925771b81eb90b75d2876..6582fecbacd7864ced79d5ed5fa98aebf345d88d 100644 --- a/lib_rend/ivas_crend.c +++ b/lib_rend/ivas_crend.c @@ -1968,7 +1968,11 @@ ivas_error ivas_rend_crendProcessSubframe( { if ( hCrend->reflections->use_er == 1 && hCrend->reflections->is_ready == 1 ) { +#ifdef NONBE_FIX_827_JBM_CREND_EARLY_REFLECTIONS + if ( ( error = ivas_er_process( hCrend->reflections, subframe_len, 0, tc_local, inConfig ) ) != IVAS_ERR_OK ) +#else if ( ( error = ivas_er_process( hCrend->reflections, subframe_len, subframe_idx, output, inConfig ) ) != IVAS_ERR_OK ) +#endif { return error; }