media: mtk-vcodec: venc: fix invalid time per frame in S_PARM
authorAlexandre Courbot <acourbot@chromium.org>
Fri, 21 Aug 2020 10:36:08 +0000 (12:36 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 26 Sep 2020 08:11:26 +0000 (10:11 +0200)
commit42f401e751b58ef071874779ef972187ef5dfce3
tree120444ef30116ef35a18447d4015893814cc320f
parent7ee20328e470b15528f9f53b7177e05628f92609
media: mtk-vcodec: venc: fix invalid time per frame in S_PARM

v4l2-compliance expects the driver to adjust the time per frame if it is
invalid (numerator or denominator set to 0). Adjust it to the default
value in these cases.

Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Acked-by: Tiffany Lin <tiffany.lin@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