Skip to content

Commit

Permalink
Merge pull request #487 from nyanmisaka/fix-rkrga-nv24-chk
Browse files Browse the repository at this point in the history
Fix NV24/NV42 format check on RKRGA
  • Loading branch information
nyanmisaka authored Oct 23, 2024
2 parents 982e2b8 + 638bc5c commit 1e5741d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
+ *
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 1e5741d

Please sign in to comment.