aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-10-14 12:02:30 -0300
committerJames Almer <jamrial@gmail.com>2024-10-14 12:03:24 -0300
commit3827233187ca843f701b29885e0a3b2510763161 (patch)
tree7c657503d882568b4c2769944432ccb1019201de
parent4f0514df62a642a511db13afb27d420ef04713a0 (diff)
downloadffmpeg-3827233187ca843f701b29885e0a3b2510763161.tar.gz
avfilter/vsrc_testsrc: add missing alpha plane define
"A" was never being defined if yuvtestsrc was enabled but rgbtestsrc disabled. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavfilter/vsrc_testsrc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index 3d80267399..7f8db39f84 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -1140,6 +1140,11 @@ const AVFilter ff_vsrc_rgbtestsrc = {
FILTER_PIXFMTS_ARRAY(rgbtest_pix_fmts),
};
+#undef R
+#undef G
+#undef B
+#undef A
+
#endif /* CONFIG_RGBTESTSRC_FILTER */
#if CONFIG_YUVTESTSRC_FILTER
@@ -1147,6 +1152,7 @@ const AVFilter ff_vsrc_rgbtestsrc = {
#define Y 0
#define U 1
#define V 2
+#define A 3
static void yuvtest_put_pixel(uint8_t *dstp[4], int dst_linesizep[4],
int i, int j, unsigned y, unsigned u, unsigned v, enum AVPixelFormat fmt,
@@ -1264,6 +1270,11 @@ const AVFilter ff_vsrc_yuvtestsrc = {
FILTER_PIXFMTS_ARRAY(yuvtest_pix_fmts),
};
+#undef Y
+#undef U
+#undef V
+#undef A
+
#endif /* CONFIG_YUVTESTSRC_FILTER */
#if CONFIG_PAL75BARS_FILTER || CONFIG_PAL100BARS_FILTER || CONFIG_SMPTEBARS_FILTER || CONFIG_SMPTEHDBARS_FILTER