Commit 93f75475 authored by multrus's avatar multrus
Browse files

fix for issue 570 - TCX LPC parameter write

parent e025533a
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -240,6 +240,7 @@
#define ENHANCED_STEREO_DMX                             /* Orange : Contribution 48 - Enhanced stereo downmix. */

#define BINAURAL_AUDIO_CMDLINE
#define FIX_570_TCX_LPC_WRITE                           /* FhG: fix issue 570: LPC bitstream writer in TCX */

/* ################## End DEVELOPMENT switches ######################### */
/* clang-format on */
+4 −0
Original line number Diff line number Diff line
@@ -392,10 +392,14 @@ void stereo_tcx_core_enc(
     * Write LPC parameters
     *--------------------------------------------------------------------------------*/

#ifndef FIX_570_TCX_LPC_WRITE
    n = st->coder_type; /* IVAS_fmToDo: hack to keep bit-exactness -> TBV */
    st->coder_type = INACTIVE;
#endif
    writeLPCparam( st, hBstr, param_lpc, bits_param_lpc, no_param_lpc, &total_nbbits );
#ifndef FIX_570_TCX_LPC_WRITE
    st->coder_type = n;
#endif

    assert( total_nbbits == ( nbits_lpc[0] + nbits_lpc[1] ) );
#ifdef DEBUG_MODE_TCX