Commit 288a390e authored by vaclav's avatar vaclav
Browse files

Merge branch '1044-unused-memory-in-ism-renderer-handle' into 'main'

Resolve "Unused memory in ISM renderer handle"

See merge request !1476
parents bff92061 8221029a
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -159,6 +159,7 @@
#define FIX_1033_MEMORY_LEAK_OMASA                      /* Nokia / Orange: issue #1033: Memory leak in OMASA to BINAURAL with HRTF with bitrate switching */
#define FIX_1038_OFFSET_TO_NULL_PTR_IN_EVS_TCX_BFI      /* FhG: move setting of pointers for parameter decoding so they are skipped in lost frames when they are not needed */
#define FIX_1043_JBM_MD_BUFFER                          /* VA: issue 1043: JBM MD handle allocation is avoided in non-JBM EXT operations */
#define FIX_1044_ISM_REND_MEMORY                        /* VA: issue 1044: Lower the memory of the ISM renderer handle. */
                                                        
/* #################### End BE switches ################################## */

+8 −0
Original line number Diff line number Diff line
@@ -804,10 +804,18 @@ typedef struct ivas_lfe_dec_data_structure

typedef struct renderer_struct
{
#ifdef FIX_1044_ISM_REND_MEMORY
    float prev_gains[MAX_NUM_OBJECTS][MAX_OUTPUT_CHANNELS];
#else
    float prev_gains[MAX_CICP_CHANNELS - 1][MAX_OUTPUT_CHANNELS];
#endif
    float *interpolator;
    int16_t interpolator_length;
#ifdef FIX_1044_ISM_REND_MEMORY
    float gains[MAX_NUM_OBJECTS][MAX_OUTPUT_CHANNELS];
#else
    float gains[MAX_CICP_CHANNELS - 1][MAX_OUTPUT_CHANNELS];
#endif

} ISM_RENDERER_DATA, *ISM_RENDERER_HANDLE;