diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 23:10:00 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:28 +0200 |
commit | a750328f37f02d3d7ec54cc04e67234439bc53c0 (patch) | |
tree | 9ad75d5991edc72300e2cfb9046bc5fa24c897c0 /libavfilter/vf_deflicker.c | |
parent | 3b0926457f37018178c8e2cc8ae6360389af1f14 (diff) | |
download | ffmpeg-a750328f37f02d3d7ec54cc04e67234439bc53c0.tar.gz |
avfilter/vf_deflicker: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_deflicker.c')
-rw-r--r-- | libavfilter/vf_deflicker.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_deflicker.c b/libavfilter/vf_deflicker.c index 11652c40ec..0db693e781 100644 --- a/libavfilter/vf_deflicker.c +++ b/libavfilter/vf_deflicker.c @@ -91,8 +91,6 @@ static const AVOption deflicker_options[] = { AVFILTER_DEFINE_CLASS(deflicker); -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pixel_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY12, AV_PIX_FMT_GRAY14, AV_PIX_FMT_GRAY16, @@ -115,8 +113,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_YUVA420P9, AV_PIX_FMT_YUVA420P10, AV_PIX_FMT_YUVA420P16, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pixel_fmts); -} static int deflicker8(AVFilterContext *ctx, const uint8_t *src, ptrdiff_t src_linesize, @@ -469,5 +465,5 @@ const AVFilter ff_vf_deflicker = { .uninit = uninit, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pixel_fmts), }; |