Commit abd12e85 authored by Yunfei Dong's avatar Yunfei Dong Committed by Mauro Carvalho Chehab

media: mediatek: vcodec: disable vp8 4K capability

For vp8 not support 4K, need to disable it.
Signed-off-by: default avatarYunfei Dong <yunfei.dong@mediatek.com>
Tested-by: default avatarNícolas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent f0a17f75
...@@ -435,7 +435,8 @@ static int vidioc_vdec_s_fmt(struct file *file, void *priv, ...@@ -435,7 +435,8 @@ static int vidioc_vdec_s_fmt(struct file *file, void *priv,
if (fmt == NULL) if (fmt == NULL)
return -EINVAL; return -EINVAL;
if (!(ctx->dev->dec_capability & VCODEC_CAPABILITY_4K_DISABLED)) { if (!(ctx->dev->dec_capability & VCODEC_CAPABILITY_4K_DISABLED) &&
fmt->fourcc != V4L2_PIX_FMT_VP8_FRAME) {
mtk_v4l2_debug(3, "4K is enabled"); mtk_v4l2_debug(3, "4K is enabled");
ctx->max_width = VCODEC_DEC_4K_CODED_WIDTH; ctx->max_width = VCODEC_DEC_4K_CODED_WIDTH;
ctx->max_height = VCODEC_DEC_4K_CODED_HEIGHT; ctx->max_height = VCODEC_DEC_4K_CODED_HEIGHT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment