ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Mon Oct 14 12:02:30 2024 -0300| [3827233187ca843f701b29885e0a3b2510763161] | committer: James Almer
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 <jamr...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3827233187ca843f701b29885e0a3b2510763161 --- libavfilter/vsrc_testsrc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".