forked from FFmpeg/FFmpeg
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>
This commit is contained in:
parent
4f0514df62
commit
3827233187
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue