57b4f302caadf1a7d7a273bccb34cc00fe5f6ac6
[openwrt/staging/neocturne.git] /
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
5 API
6
7 Matches correct behaviour from DECODE and DEINTERLACE
8
9 Signed-off-by: Dom Cobley <popcornmix@gmail.com>
10 ---
11 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
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
17 s->r.top = 0;
18 s->r.left = 0;
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;