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

Commit 24d484ba authored by Patrik2 Carlsson's avatar Patrik2 Carlsson Committed by Takahiro Aizawa
Browse files

Play timed text even after 35.79 minutes

int overflow when converting current position in ms to Us

Change-Id: I12882e52ed1ac92644d601efae5c10ec25ae9e63
parent 2d772fd4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2182,7 +2182,7 @@ void NuPlayer::onSourceNotify(const sp<AMessage> &msg) {
            int posMs;
            int64_t timeUs, posUs;
            driver->getCurrentPosition(&posMs);
            posUs = posMs * 1000;
            posUs = (int64_t) posMs * 1000ll;
            CHECK(buffer->meta()->findInt64("timeUs", &timeUs));

            if (posUs < timeUs) {