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

Commit d39b5ebf authored by Ray Essick's avatar Ray Essick Committed by Gerrit Code Review
Browse files

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

parents fc2cea02 3fdfaa3c
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;