Commit b8bcb70c authored by bayers's avatar bayers
Browse files

fix #983, use the correct number of objects for the gain calculations for discrete objects

parent 7097cb8f
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@
#define FIX_955_FASTCONV_REND_IN_ISM                    /* VA: put FastConv rendering call under DEBUGGING */
#define FIX_969_USAN_IGF_ARITH                          /* FhG: issue 969: fix USAN error in igf_sce_dec; same issue as #962 */
#define FIX_959_MASA_LINEAR_REND                        /* VA: issue 959: remove unused calling of ivas_sba_linear_renderer() in MASA rendering */
#define FIX_983_DISC_ISM_DIGEST_NUM_OBJS                /* FhG: issue #983: the discrete ISM digest function uses the wrong number of objects */

/* #################### End BE switches ################################## */

+4 −0
Original line number Diff line number Diff line
@@ -1029,7 +1029,11 @@ void ivas_ism_dec_digest_tc(
        }

        /* also get the gains here */
#ifdef FIX_983_DISC_ISM_DIGEST_NUM_OBJS
        num_objects = st_ivas->nchan_ism;
#else
        num_objects = st_ivas->nchan_transport;
#endif
        for ( i = 0; i < num_objects; i++ )
        {
            mvr2r( st_ivas->hIsmRendererData->gains[i], st_ivas->hIsmRendererData->prev_gains[i], MAX_OUTPUT_CHANNELS );