Rockchip linux/ffmpeg hevc: increase max slices count

This commit is contained in:
Alex Bee 2021-10-11 15:28:14 +02:00
parent fc15a8a029
commit 946d66c50c
2 changed files with 26 additions and 1 deletions

View File

@ -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;

View File

@ -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,