Commit 799da60a authored by Jan Kiene's avatar Jan Kiene
Browse files

port MR 1411 from float

fix different external target extrapolation between framesizes
parent 4bec0fbb
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -138,6 +138,8 @@
#define NONBE_FIX_1005_MC_RS_TCBUFFER_UPDATE                  /* FhG: issue #1005: fix TC Buffer update at a MC rate switch */
#define NONBE_FIX_1004_USAN_DTX_MASA_NO_DIRS            /* Nokia: fix USAN error caused by non-setting of correctly the number of MASA directions in DTX */

#define FIX_1008_EXTORIENT_TARGET_INTERPOLATION          /* FhG: issue #1008, external orientation init was wrong for 5ms */

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

#endif
+4 −0
Original line number Diff line number Diff line
@@ -1379,6 +1379,7 @@ ivas_error ivas_combined_orientation_open(
    move32();
    ( *hCombinedOrientationData )->interpolationIncrement_fx = ONE_IN_Q30; // Q30
    move32();
#ifndef FIX_1008_EXTORIENT_TARGET_INTERPOLATION
    IF( EQ_16( num_subframes, 1 ) )
    {
        ( *hCombinedOrientationData )->maximumFramesToTargetOrientation = 2000;
@@ -1386,9 +1387,12 @@ ivas_error ivas_combined_orientation_open(
    }
    ELSE
    {
#endif
        ( *hCombinedOrientationData )->maximumFramesToTargetOrientation = 500;
        move16();
#ifndef FIX_1008_EXTORIENT_TARGET_INTERPOLATION
    }
#endif
    ( *hCombinedOrientationData )->lrSwitchedNext = 0;
    move16();
    ( *hCombinedOrientationData )->lrSwitchedCurrent = 0;