media: rockchip: isp: fixed framerate ctl invalid issue

When set framerate from small one to big one, will lead to discard
all frame because the is_diacard flag is not reset to "false" in the
change.

Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: I7197d40ec0053c7dad7f2c088d77f7493626ea90
This commit is contained in:
LongChang Ma
2023-04-08 10:46:47 +08:00
committed by Tao Huang
parent d8568b8087
commit 065ceb71a8

View File

@@ -577,8 +577,12 @@ bool rkisp_rockit_ctrl_fps(struct rkisp_stream *stream)
}
}
if (dst_fps >= fps_in)
if (dst_fps >= fps_in) {
/* avoid from small frame rate to big frame rate lead to all buf is discard issue */
*is_discard = false;
stream_cfg->dst_fps = fps_in;
return false;
}
if ((fps_in > 0) && (dst_fps > 0)) {
if (*fps_cnt < 0)