From 05b6b30ee166e3efee95173a373c2076c5d3c7dd Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 8 Sep 2025 15:08:49 -0300 Subject: [PATCH] fftools/ffplay: set the alphamodes buffersink array option instead of the binary one And add the missing goto fail. This should ensure the alpha mode is set and remove bogus warnings printed by ffplay. Signed-off-by: James Almer --- fftools/ffplay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 05eadb69a6..dc2627521e 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -1938,9 +1938,10 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c AV_OPT_TYPE_INT, sdl_supported_color_spaces)) < 0) goto fail; - if ((ret = av_opt_set_array(filt_out, "alpha_modes", AV_OPT_SEARCH_CHILDREN, + if ((ret = av_opt_set_array(filt_out, "alphamodes", AV_OPT_SEARCH_CHILDREN, 0, FF_ARRAY_ELEMS(sdl_supported_alpha_modes), AV_OPT_TYPE_INT, sdl_supported_alpha_modes)) < 0) + goto fail; ret = avfilter_init_dict(filt_out, NULL); if (ret < 0)