3004f89c9add9c959f1caa5c1592e87dff16afd7
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0698-staging-bcm2835-codec-Allow-height-of-1920.patch
1 From b25d17959484972a6585d6e1f7cb2cfb93d1540e Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Fri, 6 Sep 2019 17:24:55 +0100
4 Subject: [PATCH] staging: bcm2835-codec: Allow height of 1920.
5
6 The codec is happy with video up to 1920 high if the width
7 is suitably reduced to stay within level limits. eg 1080x1920
8 is OK to decode.
9
10 Increase the height limit accordingly.
11
12 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
13 ---
14 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
18 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
19 @@ -92,7 +92,7 @@ static const char * const components[] =
20 #define MIN_W 32
21 #define MIN_H 32
22 #define MAX_W 1920
23 -#define MAX_H 1088
24 +#define MAX_H 1920
25 #define BPL_ALIGN 32
26 #define DEFAULT_WIDTH 640
27 #define DEFAULT_HEIGHT 480