mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
media: mediatek: vcodec: disable vp8 4K capability
For vp8 not support 4K, need to disable it. Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Tested-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
f0a17f75d6
commit
abd12e85fc
@ -435,7 +435,8 @@ static int vidioc_vdec_s_fmt(struct file *file, void *priv,
|
||||
if (fmt == NULL)
|
||||
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");
|
||||
ctx->max_width = VCODEC_DEC_4K_CODED_WIDTH;
|
||||
ctx->max_height = VCODEC_DEC_4K_CODED_HEIGHT;
|
||||
|
Loading…
Reference in New Issue
Block a user