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

Commit 01abec87 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

am: 51ae9199

Change-Id: I334e5b3c4ec31a0010388c91b0464097a8567ef6
parents 00ed920f 51ae9199
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;