Commit aed92949 authored by vaclav's avatar vaclav
Browse files

port FIX_959_MASA_LINEAR_REND

parent 23f1ecad
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -198,6 +198,7 @@
#define SPLIT_REND_POSE_CORRECTION_UNUSED_BITS
#define ISAR_BITSTREAM_UPDATE_LC3PLUS                   /* FhG: Multiple improvements to the ISAR bitstream when LC3plus is used. See MR 1456 for details. */
#endif
#define FIX_959_MASA_LINEAR_REND                        /* VA: issue 959: remove unused calling of ivas_sba_linear_renderer() in MASA rendering */

/* #################### End BASOP porting switches ############################ */

+4 −0
Original line number Diff line number Diff line
@@ -1119,6 +1119,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 );
@@ -1133,6 +1134,9 @@ ivas_error ivas_jbm_dec_render(
                }
            }
            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 );
            }
+4 −0
Original line number Diff line number Diff line
@@ -368,7 +368,11 @@ 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 ) ) )