Commit 6355bea6 authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_959_MASA_LINEAR_REND

parent 584d76c9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -151,7 +151,6 @@
/*#define FIX_I4_OL_PITCH*/                             /* fix open-loop pitch used for EVS core switching */
/*#define SPLIT_REND_WITH_HEAD_ROT  */                  /* Dlb,FhG: Split Rendering contributions 21 and 35 */

#define FIX_959_MASA_LINEAR_REND                        /* VA: issue 959: remove unused calling of ivas_sba_linear_renderer() in MASA rendering */
#define FIX_963_USAN_ERROR                              /* Eri: Issue 963: USAN error in Stereo CNG, division by zero */
#define FIX_971_LOG2_IDX_GAIN_0                         /* VA: prevent -Inf due to log2(ratio==0) */

+0 −17
Original line number Diff line number Diff line
@@ -1134,24 +1134,7 @@ ivas_error ivas_jbm_dec_render(
        }
        else if ( st_ivas->ivas_format == MASA_FORMAT )
        {
#ifndef FIX_959_MASA_LINEAR_REND
            if ( st_ivas->renderer_type == RENDERER_SBA_LINEAR_DEC )
            {
                *nSamplesRendered = min( st_ivas->hTcBuffer->n_samples_available, nSamplesAskedLocal );
                for ( n = 0; n < nchan_remapped; n++ )
                {
                    mvr2r( st_ivas->hTcBuffer->tc[n] + st_ivas->hTcBuffer->n_samples_rendered, p_output[n], *nSamplesRendered );
                }

                if ( ( error = ivas_sba_linear_renderer( p_output, *nSamplesRendered, nchan_remapped, 0, output_config, st_ivas->hOutSetup ) ) != IVAS_ERR_OK )
                {
                    return error;
                }
            }
            else if ( st_ivas->renderer_type == RENDERER_DIRAC )
#else
            if ( st_ivas->renderer_type == RENDERER_DIRAC )
#endif
            {
                ivas_dirac_dec_render( st_ivas, nchan_remapped, nSamplesAskedLocal, nSamplesRendered, nSamplesAvailableNext, p_output );
            }
+0 −4
Original line number Diff line number Diff line
@@ -375,11 +375,7 @@ void ivas_renderer_select(
            {
                *internal_config = IVAS_AUDIO_CONFIG_HOA3;
            }
#ifdef FIX_959_MASA_LINEAR_REND
            *renderer_type = RENDERER_SBA_LINEAR_DEC;
#else
            st_ivas->renderer_type = RENDERER_SBA_LINEAR_DEC;
#endif
        }
        else if ( ( ivas_format == MASA_FORMAT && output_config == IVAS_AUDIO_CONFIG_MONO && st_ivas->nchan_transport == 1 ) ||
                  ( ivas_format == SBA_FORMAT && ( output_config == IVAS_AUDIO_CONFIG_STEREO || output_config == IVAS_AUDIO_CONFIG_MONO ) ) )