diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 23:15:11 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:28 +0200 |
commit | d60c3303ac399ecfce64ea7aa073cd376c6a7a35 (patch) | |
tree | 349f5febb12c2b08fee65f0f236caf49878d9dcc /libavfilter/vf_dblur.c | |
parent | 6e46db6c43ec71a8f38be79b004a6f3e779314dc (diff) | |
download | ffmpeg-d60c3303ac399ecfce64ea7aa073cd376c6a7a35.tar.gz |
avfilter/vf_dblur: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_dblur.c')
-rw-r--r-- | libavfilter/vf_dblur.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_dblur.c b/libavfilter/vf_dblur.c index 91c0023a13..f16b58128c 100644 --- a/libavfilter/vf_dblur.c +++ b/libavfilter/vf_dblur.c @@ -112,8 +112,6 @@ static void diriir2d(AVFilterContext *ctx, int plane) filter_horizontally(ctx, width, height); } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P, @@ -136,9 +134,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static int config_input(AVFilterLink *inlink) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format); @@ -298,7 +293,7 @@ const AVFilter ff_vf_dblur = { .uninit = uninit, FILTER_INPUTS(dblur_inputs), FILTER_OUTPUTS(dblur_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, .process_command = ff_filter_process_command, }; |