PR #20440 opened by Niklas Haas (haasn) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20440 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20440.patch
And remove the field again; in retrospect, there is no point to adding it in the first place. >From 607bc1dc015e824c0d2ac44f47e3ff438f0f6d79 Mon Sep 17 00:00:00 2001 From: Niklas Haas <g...@haasn.dev> Date: Thu, 4 Sep 2025 19:17:57 +0200 Subject: [PATCH 1/2] fftools/ffplay: don't use deprecated field --- fftools/ffplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 05eadb69a6..1602983a2e 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -1938,7 +1938,7 @@ 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) -- 2.49.1 >From c9708e2f5e6c745899af680831edd45a09533ce4 Mon Sep 17 00:00:00 2001 From: Niklas Haas <g...@haasn.dev> Date: Thu, 4 Sep 2025 19:19:03 +0200 Subject: [PATCH 2/2] avfilter/buffersink: remove unneeded parameter This is a newly added field, so there's no point to try and keep backwards compatibility with an older API - newer clients should just use the new fields. --- libavfilter/buffersink.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index f636d3728f..f884114a91 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -531,7 +531,6 @@ static const AVOption buffersink_options[] = { { "pix_fmts", "set the supported pixel formats", OFFSET(pixel_fmts), AV_OPT_TYPE_BINARY, .flags = FLAGS | AV_OPT_FLAG_DEPRECATED }, { "color_spaces", "set the supported color spaces", OFFSET(color_spaces), AV_OPT_TYPE_BINARY, .flags = FLAGS | AV_OPT_FLAG_DEPRECATED }, { "color_ranges", "set the supported color ranges", OFFSET(color_ranges), AV_OPT_TYPE_BINARY, .flags = FLAGS | AV_OPT_FLAG_DEPRECATED }, - { "alpha_modes", "set the supported alpha modes", OFFSET(alpha_modes), AV_OPT_TYPE_BINARY, .flags = FLAGS | AV_OPT_FLAG_DEPRECATED }, #endif { "pixel_formats", "array of supported pixel formats", OFFSET(pixel_formats), -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-le...@ffmpeg.org