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

Commit 6cc43e10 authored by Robert Shih's avatar Robert Shih Committed by Gerrit Code Review
Browse files

Merge "httplive: fix overflow in BandwidthEstimator"

parents caea9fc2 a6ff3a8a
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;