diff mbox series

[FFmpeg-devel,067/218] avfilter/vf_derain: Store format in filter, remove query function

Message ID PR3PR03MB66652D2D84702FAA5C9B1BFC8FAA9@PR3PR03MB6665.eurprd03.prod.outlook.com
State Accepted
Commit b779e3bc8cb861a5db20191cbcaaba1fae032ab6
Headers show
Series [FFmpeg-devel,001/218] avfilter/f_reverse: Don't use redundant query_formats function | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 30, 2021, 1:40 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/vf_derain.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_derain.c b/libavfilter/vf_derain.c
index 2950527f69..0eb7da18da 100644
--- a/libavfilter/vf_derain.c
+++ b/libavfilter/vf_derain.c
@@ -56,16 +56,6 @@  static const AVOption derain_options[] = {
 
 AVFILTER_DEFINE_CLASS(derain);
 
-static int query_formats(AVFilterContext *ctx)
-{
-    const enum AVPixelFormat pixel_fmts[] = {
-        AV_PIX_FMT_RGB24,
-        AV_PIX_FMT_NONE
-    };
-
-    return ff_set_common_formats_from_list(ctx, pixel_fmts);
-}
-
 static int filter_frame(AVFilterLink *inlink, AVFrame *in)
 {
     DNNAsyncStatusType async_state = 0;
@@ -136,7 +126,7 @@  const AVFilter ff_vf_derain = {
     .uninit        = uninit,
     FILTER_INPUTS(derain_inputs),
     FILTER_OUTPUTS(derain_outputs),
-    FILTER_QUERY_FUNC(query_formats),
+    FILTER_SINGLE_PIXFMT(AV_PIX_FMT_RGB24),
     .priv_class    = &derain_class,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
 };