media: rockchip: isp: fix limit of dcrop

Change-Id: Id378a98d65bc3d3d39b1f21387e6c94822aedbcd
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2022-09-01 09:35:14 +08:00
committed by Tao Huang
parent f22af13984
commit d1c880c697

View File

@@ -2567,7 +2567,7 @@ static void rkisp_check_stream_dcrop(struct rkisp_device *dev,
if (dcrop->height > crop->height) {
dcrop->height = crop->height;
dcrop->top = 0;
} else if ((dcrop->left + dcrop->width) > crop->height) {
} else if ((dcrop->top + dcrop->height) > crop->height) {
dcrop->top = crop->height - dcrop->height;
}
}