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

Commit fc31e1d5 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix potential divide by zero

Bug: 31647370
Change-Id: I98227f372b743365a370eff55432f2ba501df447
parent fe066a71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -713,7 +713,7 @@ status_t NuMediaExtractor::getMetrics(Parcel *reply) {
}

bool NuMediaExtractor::getTotalBitrate(int64_t *bitrate) const {
    if (mTotalBitrate >= 0) {
    if (mTotalBitrate > 0) {
        *bitrate = mTotalBitrate;
        return true;
    }