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

Commit 51ae9199 authored by Robert Shih's avatar Robert Shih Committed by android-build-merger
Browse files

Merge "httplive: fix overflow in BandwidthEstimator" am: 6cc43e10

am: 3c0f1962

Change-Id: Ifab0b1f9ef5cd46b7a6b66c9e2abd27b942875e9
parents f176757e 3c0f1962
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;