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

Commit d73a81c2 authored by Andreas Huber's avatar Andreas Huber
Browse files

Properly use a long long literal to avoid under/overflow during fps computation.

Change-Id: I04730c86d43d6192ded3e779631effda9dd06e63
parent 4f33d800
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ static int64_t getNowUs() {
    struct timeval tv;
    gettimeofday(&tv, NULL);

    return (int64_t)tv.tv_usec + tv.tv_sec * 1000000;
    return (int64_t)tv.tv_usec + tv.tv_sec * 1000000ll;
}

static void playSource(OMXClient *client, const sp<MediaSource> &source) {