diff options
Diffstat (limited to 'libavfilter/vf_derain.c')
-rw-r--r-- | libavfilter/vf_derain.c | 12 |
1 files changed, 1 insertions, 11 deletions
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, }; |