Commit 84314d87 authored by bayers's avatar bayers
Browse files

fix #770, Planar SBA crash, number of TC was initialized wrong in this case

parent 6c38d924
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -168,7 +168,7 @@
#define NONBE_FIX_746_NONDIEGETIC_MD                          /* Eri: Issue 746: The non-diegetic panning flag affects the encoder bitstream even if extended metadata is not enabled. Crashes the decoder.*/
#define NONBE_FIX_729_ASAN_2ISM_ACELP                         /* VA: issue 729: fix ASAN ACELP errors with 2 ISM coding using LTV */
#define NONBE_FIX_694_OMASA_ACELP                             /* Nokia: Issue #694: OMASA crash in ACELP with extreme item */

#define NONBE_FIX_770_PLANAR_SBA_JBM                          /* FhG  : Issue #770: Crash in planar FOA decoding with JBM caused by uninitialized value */
/* ##################### End NON-BE switches ############################# */

/* ################## End DEVELOPMENT switches ######################### */
+2 −2
Original line number Diff line number Diff line
@@ -1705,12 +1705,12 @@ int16_t ivas_jbm_dec_get_num_tc_channels(
        if ( st_ivas->ivas_format == SBA_FORMAT )
        {
            if (
#ifndef FIX_PLANAR_SBA_JBM_RS
#ifndef NONBE_FIX_770_PLANAR_SBA_JBM
                ( st_ivas->sba_planar && num_tc >= 3 ) ||
                (
#endif
                    num_tc == 3
#ifndef FIX_PLANAR_SBA_JBM_RS
#ifndef NONBE_FIX_770_PLANAR_SBA_JBM
                    )
#endif
            )