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

Commit 903fc221 authored by James Dong's avatar James Dong
Browse files

Ignore errors from correction parameter query and config for M4v and H263 encoders

This feature is not essential for camcorder application

Change-Id: Id560632207dcf24fe361280ebe8178ea7332f22d
parent 697bd76e
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -980,7 +980,10 @@ status_t OMXCodec::setupErrorCorrectionParameters() {
    status_t err = mOMX->getParameter(
            mNode, OMX_IndexParamVideoErrorCorrection,
            &errorCorrectionType, sizeof(errorCorrectionType));
    CHECK_EQ(err, OK);
    if (err != OK) {
        LOGW("Error correction param query is not supported");
        return OK;  // Optional feature. Ignore this failure
    }

    errorCorrectionType.bEnableHEC = OMX_FALSE;
    errorCorrectionType.bEnableResync = OMX_TRUE;
@@ -991,7 +994,11 @@ status_t OMXCodec::setupErrorCorrectionParameters() {
    err = mOMX->setParameter(
            mNode, OMX_IndexParamVideoErrorCorrection,
            &errorCorrectionType, sizeof(errorCorrectionType));
    CHECK_EQ(err, OK);
    if (err != OK) {
        LOGW("Error correction param configuration is not supported");
    }

    // Optional feature. Ignore the failure.
    return OK;
}