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

Commit 0ecfbd1c authored by Andreas Huber's avatar Andreas Huber
Browse files

Return a runtime error instead of asserting if the M4vH263Decoder fails in start()

Change-Id: Ie704a72685f749613fa0ed5fa6f461abc0406371
related-to-bug: 3328200
parent 32ad210e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -132,7 +132,10 @@ status_t M4vH263Decoder::start(MetaData *) {
    }

    MP4DecodingMode actualMode = PVGetDecBitstreamMode(mHandle);
    CHECK_EQ(mode, actualMode);
    if (mode != actualMode) {
        PVCleanUpVideoDecoder(mHandle);
        return UNKNOWN_ERROR;
    }

    PVSetPostProcType((VideoDecControls *) mHandle, 0);