Commit e7bfdf0a authored by Hirokazu Honda's avatar Hirokazu Honda Committed by Mauro Carvalho Chehab

media: mediatek: vcodec: Skip non CBR bitrate mode

V4L2_MPEG_VIDEO_BITRATE_MODE_CBR is the only bitrate mode supported
by the mediatek driver. The other bitrates must be skipped in
QUERY_MENU.

Fixes: d8e8aa86 ("media: mediatek: vcodec: Report supported bitrate modes")
Signed-off-by: default avatarHirokazu Honda <hiroh@chromium.org>
Reviewed-by: default avatarChen-Yu Tsai <wenst@chromium.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent b813e39a
......@@ -1405,7 +1405,8 @@ int mtk_vcodec_enc_ctrls_setup(struct mtk_vcodec_ctx *ctx)
V4L2_MPEG_VIDEO_VP8_PROFILE_0, 0, V4L2_MPEG_VIDEO_VP8_PROFILE_0);
v4l2_ctrl_new_std_menu(handler, ops, V4L2_CID_MPEG_VIDEO_BITRATE_MODE,
V4L2_MPEG_VIDEO_BITRATE_MODE_CBR,
0, V4L2_MPEG_VIDEO_BITRATE_MODE_CBR);
~(1 << V4L2_MPEG_VIDEO_BITRATE_MODE_CBR),
V4L2_MPEG_VIDEO_BITRATE_MODE_CBR);
if (handler->error) {
......
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