diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:05:49 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:26 +0200 |
commit | d510f43b19cb0e42b72862f7a52e730c0798d92b (patch) | |
tree | 31c4a61ffd409e7d3b4c8eaee4b82897067f2eaa /libavfilter | |
parent | db68f0e60bebc2f825452dac388cf10c3f782e06 (diff) | |
download | ffmpeg-d510f43b19cb0e42b72862f7a52e730c0798d92b.tar.gz |
avfilter/vf_readvitc: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_readvitc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_readvitc.c b/libavfilter/vf_readvitc.c index eb8d11f7f2..99f58e6fc9 100644 --- a/libavfilter/vf_readvitc.c +++ b/libavfilter/vf_readvitc.c @@ -184,8 +184,6 @@ static int config_props(AVFilterLink *inlink) return 0; } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pixel_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_NV12, @@ -207,8 +205,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pixel_fmts); -} static int filter_frame(AVFilterLink *inlink, AVFrame *frame) { @@ -248,6 +244,6 @@ const AVFilter ff_vf_readvitc = { .priv_class = &readvitc_class, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), + FILTER_PIXFMTS_ARRAY(pixel_fmts), .init = init, - FILTER_QUERY_FUNC(query_formats), }; |