Skip to content
Snippets Groups Projects
Commit fcf6ac3a authored by Nicolas Dufresne's avatar Nicolas Dufresne
Browse files

media: mtk-vcodec: Don't try to decode 422/444 VP9


This is not supported by the hardware and trying to decode
these leads to LAT timeout errors.

Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: default avatarNicolas Dufresne <nicolas.dufresne@collabora.com>
parent 4f24543d
No related merge requests found
......@@ -553,6 +553,12 @@ static int mtk_vdec_s_ctrl(struct v4l2_ctrl *ctrl)
mtk_v4l2_vdec_err(ctx, "VP9: bit_depth:%d", frame->bit_depth);
return -EINVAL;
}
if (!(frame->flags & V4L2_VP9_FRAME_FLAG_X_SUBSAMPLING) ||
!(frame->flags & V4L2_VP9_FRAME_FLAG_Y_SUBSAMPLING)) {
mtk_v4l2_vdec_err(ctx, "VP9: only 420 subsampling is supported");
return -EINVAL;
}
break;
case V4L2_CID_STATELESS_AV1_SEQUENCE:
seq = (struct v4l2_ctrl_av1_sequence *)hdr_ctrl->p_new.p;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment