media: mtk-vcodec: venc: remove redundant code
authorAlexandre Courbot <acourbot@chromium.org>
Sat, 5 Jun 2021 02:29:13 +0000 (04:29 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 17 Jun 2021 08:09:47 +0000 (10:09 +0200)
commitb6c57d313f5f8d0da150f6e02882f0607443abe7
treec4ce47932635dcc4a330afd0911bc5ff695c6f9e
parent0d346d2a6f54f06f36b224fd27cd6eafe8c83be9
media: mtk-vcodec: venc: remove redundant code

vidioc_try_fmt() does clamp height and width when called on the OUTPUT
queue, so clamping them prior to calling this function is redundant. Set
the queue's parameters after calling vidioc_try_fmt() so we can use the
values it computed.

Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Signed-off-by: Irui Wang <irui.wang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c