mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
media: rockchip: isp: fix limit of dcrop
Change-Id: Id378a98d65bc3d3d39b1f21387e6c94822aedbcd Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user