Commit 954014f7 authored by Enrico Scholz's avatar Enrico Scholz

onsemi: core: round up h_size

Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent bb5501ca
...@@ -1308,7 +1308,7 @@ static void onsemi_get_frame_size(struct onsemi_core const *onsemi, ...@@ -1308,7 +1308,7 @@ static void onsemi_get_frame_size(struct onsemi_core const *onsemi,
h_size = parm->crop.width; h_size = parm->crop.width;
h_size += parm->hblank; h_size += parm->hblank;
h_size = clamp_t(unsigned int, h_size, h_size = clamp_t(unsigned int, (h_size + 1) / 2 * 2,
limits->hlen.min, limits->hlen.max); limits->hlen.min, limits->hlen.max);
v_size = parm->crop.height; v_size = parm->crop.height;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment