Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67952b52 authored by Ryszard Grzesica's avatar Ryszard Grzesica Committed by android-build-merger
Browse files

Merge changes from topic "am-bcb09242-ce3f-453e-a1ab-496ff9dcb274" into oc-dev

am: 73c9deaf

Change-Id: I4c1fe63b943e8fcea398e4f3794ee676095d4853
parents 6f0501b8 73c9deaf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -129,6 +129,11 @@ bool VideoFrameScheduler::PLL::fit(
        numSamplesToUse = mNumSamples;
    }

    if ((period >> kPrecision) == 0 ) {
        ALOGW("Period is 0, or after including precision is 0 - would cause div0, returning");
        return false;
    }

    int64_t sumX = 0;
    int64_t sumXX = 0;
    int64_t sumXY = 0;