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

Commit 1cb6d953 authored by Ray Essick's avatar Ray Essick Committed by Automerger Merge Worker
Browse files

Merge "C2SoftVpxDec: Replace CHECK() with error handling" am: d39b5ebf

Change-Id: I01febe1ada0ff704a6396cd296e9748bbceb210a
parents 963b02f7 d39b5ebf
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -783,7 +783,13 @@ status_t C2SoftVpxDec::outputBuffer(
        }

    }
    CHECK(img->fmt == VPX_IMG_FMT_I420 || img->fmt == VPX_IMG_FMT_I42016);
    if(img->fmt != VPX_IMG_FMT_I420 && img->fmt != VPX_IMG_FMT_I42016) {
        ALOGE("img->fmt %d not supported", img->fmt);
        mSignalledError = true;
        work->workletsProcessed = 1u;
        work->result = C2_CORRUPTED;
        return false;
    }

    std::shared_ptr<C2GraphicBlock> block;
    uint32_t format = HAL_PIXEL_FORMAT_YV12;