From 638bc5c46aeb37d2f3ff26ce4cb8e825ca90a6df Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Wed, 23 Oct 2024 21:48:20 +0800 Subject: [PATCH] Fix NV24/NV42 format check on RKRGA Signed-off-by: nyanmisaka --- ...7-add-full-hwa-pipeline-for-rockchip-rk3588-platform.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/patches/0047-add-full-hwa-pipeline-for-rockchip-rk3588-platform.patch b/debian/patches/0047-add-full-hwa-pipeline-for-rockchip-rk3588-platform.patch index ce1b491b05..e5d2347d97 100644 --- a/debian/patches/0047-add-full-hwa-pipeline-for-rockchip-rk3588-platform.patch +++ b/debian/patches/0047-add-full-hwa-pipeline-for-rockchip-rk3588-platform.patch @@ -3373,7 +3373,7 @@ Index: FFmpeg/libavfilter/rkrga_common.c =================================================================== --- /dev/null +++ FFmpeg/libavfilter/rkrga_common.c -@@ -0,0 +1,1324 @@ +@@ -0,0 +1,1326 @@ +/* + * Copyright (c) 2023 NyanMisaka + * @@ -4176,6 +4176,8 @@ Index: FFmpeg/libavfilter/rkrga_common.c + /* NV24/NV42 requires RGA2-Pro */ + if (!r->has_rga2p && + (src->pix_fmt == AV_PIX_FMT_NV24 || ++ src->pix_fmt == AV_PIX_FMT_NV42 || ++ dst->pix_fmt == AV_PIX_FMT_NV24 || + dst->pix_fmt == AV_PIX_FMT_NV42)) { + av_log(avctx, AV_LOG_ERROR, "'%s' and '%s' are only supported by RGA2-Pro\n", + av_get_pix_fmt_name(AV_PIX_FMT_NV24),