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

Commit a521b9cc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix potential divide by zero"

parents 154a6e9b fc31e1d5
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;
    }