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

Commit 221055a1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "C2SoftVpxDec: Replace CHECK() with error handling" into rvc-dev

parents ee650ee3 dbaa9bc0
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line 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;
    std::shared_ptr<C2GraphicBlock> block;
    uint32_t format = HAL_PIXEL_FORMAT_YV12;
    uint32_t format = HAL_PIXEL_FORMAT_YV12;