mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-03 07:57:49 +00:00
Rockchip linux/ffmpeg hevc: increase max slices count
This commit is contained in:
parent
fc15a8a029
commit
946d66c50c
@ -0,0 +1,25 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Alex Bee <knaerzche@gmail.com>
|
||||
Date: Sun, 20 Jun 2021 20:19:19 +0200
|
||||
Subject: [PATCH] v4l2request: hevc: increase max slices
|
||||
|
||||
It's required by some HEVC confromance tests
|
||||
|
||||
Signed-off-by: Alex Bee <knaerzche@gmail.com>
|
||||
---
|
||||
libavcodec/v4l2_request_hevc.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libavcodec/v4l2_request_hevc.c b/libavcodec/v4l2_request_hevc.c
|
||||
index be78382444..35ec87e310 100644
|
||||
--- a/libavcodec/v4l2_request_hevc.c
|
||||
+++ b/libavcodec/v4l2_request_hevc.c
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "v4l2_request.h"
|
||||
#include "hevc-ctrls.h"
|
||||
|
||||
-#define MAX_SLICES 16
|
||||
+#define MAX_SLICES 32
|
||||
|
||||
typedef struct V4L2RequestControlsHEVC {
|
||||
struct v4l2_ctrl_hevc_sps sps;
|
@ -2918,7 +2918,7 @@ index 2c0c6dcbd066..c269e4a21a29 100644
|
||||
+ .cfg.id = V4L2_CID_MPEG_VIDEO_HEVC_SLICE_PARAMS,
|
||||
+ // HACK: match ffmpeg v4l2 request api hwaccel size,
|
||||
+ // we should support variable length up to 600 slices
|
||||
+ .cfg.dims = { 16 },
|
||||
+ .cfg.dims = { 32 },
|
||||
+ },
|
||||
+ {
|
||||
+ .cfg.id = V4L2_CID_MPEG_VIDEO_HEVC_SPS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user