Commit 6b362b9c authored by emerit's avatar emerit
Browse files

bug fix

parent 67a435e5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -203,7 +203,11 @@ ivas_error ivas_masa_decode_fx(
#endif
            }
            test();
#ifdef FIX_CREND_SIMPLIFY_CODE
            IF( EQ_32( ivas_format, MASA_FORMAT ) && GT_16( st_ivas->nchan_ism, 0 ) )
#else
            IF( EQ_32( ivas_format, MASA_FORMAT ) && NE_16( st_ivas->nchan_ism, 5 ) )
#endif
            {
                /* there was OMASA in the input */
                hMasa->config.input_ivas_format = MASA_ISM_FORMAT;
+4 −1
Original line number Diff line number Diff line
@@ -2056,8 +2056,11 @@ ivas_error ivas_rend_openCrend(
            {
                hCrend->hReverb = NULL;
            }

#ifdef FIX_CREND_SIMPLIFY_CODE
            ( *pCrend )->binaural_latency_ns = L_shr_r( Mpy_32_32_r( ( *pCrend )->hHrtfCrend->latency_s_fx, 1000000000 ), Q31 - ( *pCrend )->hHrtfCrend->factor_Q_latency_s_fx );
#else
            ( *pCrend )->binaural_latency_ns = Mult_32_32( ( *pCrend )->hHrtfCrend->latency_s_fx, (Word32) 1000000000 );
#endif
            move32();
        }

+3 −2
Original line number Diff line number Diff line
@@ -503,7 +503,7 @@ static ivas_error DefaultBSplineModel_fx(
            return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for Binaural TD renderer\n" ) );
        }

        IF( LE_32( model->azimShapeIdx[i], 0 ) )
        IF( LT_32( model->azimShapeIdx[i], 0 ) )
        {
            azimSegSamples = 360;
        }
@@ -516,7 +516,8 @@ static ivas_error DefaultBSplineModel_fx(
        assert( azimSegSamples == 360 / model->azimDim3[i] );
        FOR( j = 0; j < model->azimDim3[i] + 1; j++ )
        {
            model->azimKSeq_fx[i][j] = azimSegSamples * j;
            model->azimKSeq_fx[i][j] = L_shl( L_mult0( defaultHRIR_rom_azimSegSamples[0], j ), Q22 ); // Q22
            move32();
        }
    }
#else
+7458 −0

File added.

Preview size limit exceeded, changes collapsed.

+59840 −0

File added.

Preview size limit exceeded, changes collapsed.