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

Commit 3c0f1962 authored by Robert Shih's avatar Robert Shih Committed by android-build-merger
Browse files

Merge "httplive: fix overflow in BandwidthEstimator"

am: 6cc43e10

Change-Id: I62c07442b4bcb05fa067e879c445bf19d4832b13
parents 52caf00e 6cc43e10
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ bool LiveSession::BandwidthEstimator::estimateBandwidth(
        *shortTermBps = mShortTermEstimate;
    }

    int32_t minEstimate = -1, maxEstimate = -1;
    int64_t minEstimate = -1, maxEstimate = -1;
    List<int32_t>::iterator it;
    for (it = mPrevEstimates.begin(); it != mPrevEstimates.end(); it++) {
        int32_t estimate = *it;