diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c index ce24aa92a7..12108dafb1 100644 --- a/libavfilter/vf_delogo.c +++ b/libavfilter/vf_delogo.c @@ -225,17 +225,12 @@ static av_cold void uninit(AVFilterContext *ctx) av_expr_free(s->h_pexpr); s->h_pexpr = NULL; } - -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUVA420P, AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} static av_cold int init(AVFilterContext *ctx) { @@ -402,6 +397,6 @@ const AVFilter ff_vf_delogo = { .uninit = uninit, FILTER_INPUTS(avfilter_vf_delogo_inputs), FILTER_OUTPUTS(avfilter_vf_delogo_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, };