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

Commit 20a9a347 authored by Ray Essick's avatar Ray Essick Committed by Automerger Merge Worker
Browse files

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

Merge "C2SoftVpxDec: Replace CHECK() with error handling" am: d39b5ebf am: 1cb6d953 am: cb004998 am: d4555f91

Change-Id: I03627efde96683c53a75282d1f9c0a2c191917e2
parents c7ffc1a1 d4555f91
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -784,7 +784,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;