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

Commit 58c524ec authored by James Dong's avatar James Dong
Browse files

Fix a crash where the EOS was signalled but some output buffer were still pending.

Change-Id: Ide111264501441b51bb10629ae2021accf9e1fb5
related-to-bug: 5234126
parent 173cc7c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1990,7 +1990,7 @@ int64_t OMXCodec::retrieveDecodingTimeUs(bool isCodecSpecific) {
    CHECK(mIsEncoder);

    if (mDecodingTimeList.empty()) {
        CHECK(mNoMoreOutputData);
        CHECK(mSignalledEOS || mNoMoreOutputData);
        // No corresponding input frame available.
        // This could happen when EOS is reached.
        return 0;