Commit a99b3504 authored by bayers's avatar bayers
Browse files

fix usan in JBM, access to the transport channel buffers was using the wrong...

fix usan in JBM, access to the transport channel buffers was using the wrong number of channels as for condition
parent ae7a09c9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -161,6 +161,7 @@
#define FIX_566_2DIR_MASA_384K                          /* Nokia: Issued 566:  Bugfix in 384k MASA metadata encoding of second direction */
#define FIX_XXX_HEADTRACKER_INIT
#define FIX_XXX_ISM_SBA_ASAN
#define FIX_XXX_JBM_USAN                                /* FhG: fix usan in acessing transport channel buffers */
#define NONBE_FIX_589_JBM_TC_OFFSETS
#define API_5MS                                         /* FhG: 5ms rendering capability */
#ifdef API_5MS
+4 −0
Original line number Diff line number Diff line
@@ -747,7 +747,11 @@ ivas_error ivas_jbm_dec_render(
        p_output[n] = &output[n][0];
    }

#ifdef FIX_XXX_JBM_USAN
    for ( n = 0; n < st_ivas->hTcBuffer->nchan_buffer_full; n++ )
#else
    for ( n = 0; n < st_ivas->hTcBuffer->nchan_transport_internal; n++ )
#endif
    {
        p_tc[n] = &st_ivas->hTcBuffer->tc[n][st_ivas->hTcBuffer->n_samples_rendered];
    }