1 From a9bf65dcc609ee839a705e7301a3846ae09c75d0 Mon Sep 17 00:00:00 2001
2 From: Dom Cobley <popcornmix@gmail.com>
3 Date: Tue, 14 Sep 2021 16:44:18 +0100
4 Subject: [PATCH] staging/bcm2835-v4l2_codec: Fix for encode selection
7 Matches correct behaviour from DECODE and DEINTERLACE
9 Signed-off-by: Dom Cobley <popcornmix@gmail.com>
11 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
14 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
15 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
16 @@ -1819,7 +1819,7 @@ static int vidioc_s_selection(struct fil
19 s->r.width = min(s->r.width, q_data->crop_width);
20 - s->r.height = min(s->r.height, q_data->crop_height);
21 + s->r.height = min(s->r.height, q_data->height);
22 q_data->crop_width = s->r.width;
23 q_data->crop_height = s->r.height;
24 q_data->selection_set = true;