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

Commit 164f9f86 authored by Lubin Yin's avatar Lubin Yin
Browse files

codec2: Fix nsec to msec conversion in C2Fence

Bug: 222463114
Change-Id: I7ed3d4d13cc37025bcc76bdf03f69b44d72dcc81
parent e2f4f1ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@ using namespace android;
class _C2FenceFactory::SyncFenceImpl : public C2Fence::Impl {
public:
    virtual c2_status_t wait(c2_nsecs_t timeoutNs) {
        c2_nsecs_t timeoutMs = timeoutNs / 1000;
        int64_t timeoutMs = timeoutNs / 1000000;
        if (timeoutMs > INT_MAX) {
            timeoutMs = INT_MAX;
        }