diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 22:02:15 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:27 +0200 |
commit | 756b1d9fcbecc7ed90946cd8dd7689ebc8385caa (patch) | |
tree | b67126924e59ada39d31e0650816ee2f34c070d8 /libavfilter/vf_estdif.c | |
parent | 4ccf72f5516724cdceb30b8ec8c7cb3c983ee184 (diff) | |
download | ffmpeg-756b1d9fcbecc7ed90946cd8dd7689ebc8385caa.tar.gz |
avfilter/vf_estdif: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_estdif.c')
-rw-r--r-- | libavfilter/vf_estdif.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_estdif.c b/libavfilter/vf_estdif.c index dea393e7b9..88c927826b 100644 --- a/libavfilter/vf_estdif.c +++ b/libavfilter/vf_estdif.c @@ -101,8 +101,6 @@ static const AVOption estdif_options[] = { AVFILTER_DEFINE_CLASS(estdif); -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, @@ -129,9 +127,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static int config_output(AVFilterLink *outlink) { AVFilterContext *ctx = outlink->src; @@ -578,7 +573,7 @@ const AVFilter ff_vf_estdif = { .uninit = uninit, FILTER_INPUTS(estdif_inputs), FILTER_OUTPUTS(estdif_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, .process_command = ff_filter_process_command, }; |