Commit 8c633af9 authored by multrus's avatar multrus
Browse files

fix wrong expression

parent 3e68439f
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -180,6 +180,7 @@
#define FIX_796_MCT_MODE_DIFF_JBM                       /* FhG: Issue 796: fix differences between JBM and non-JBM fOR MC */
#define LIB_REND_FIX_HRTFPARAMBIN_MEMLEAK               /* fix 755 */
#define FIX_803_SCE_MD_HANDLE                           /* VA: issue 803: Resolve "MD handle needed only for one SCE" */
#define FIX_790_TCX_INIT                                /* FhG: issue 790: Fix wrong expression in TCX config */


/* #################### End BE switches ################################## */
+4 −0
Original line number Diff line number Diff line
@@ -89,7 +89,11 @@ void stereo_tcx_init_enc(
    st->L_frame = (int16_t) ( st->sr_core / FRAMES_PER_SEC );
    st->hTcxEnc->L_frameTCX = (int16_t) ( st->input_Fs / FRAMES_PER_SEC );

#ifdef FIX_790_TCX_INIT
    if ( ( st->L_frame == L_FRAME16k && ( st->bits_frame_nominal * FRAMES_PER_SEC ) <= MAX_ACELP_BRATE ) || ( st->tcxonly && ( st->sr_core == 2 * INT_FS_16k || st->sr_core == INT_FS_16k ) ) )
#else
    if ( ( st->L_frame == L_FRAME16k && ( st->bits_frame_nominal * FRAMES_PER_SEC ) <= MAX_ACELP_BRATE ) || ( st->tcxonly && ( st->sr_core == INT_FS_16k || st->sr_core == INT_FS_16k ) ) )
#endif
    {
        st->nb_subfr = NB_SUBFR16k;
    }