diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:54:56 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:27 +0200 |
commit | cf8b7e8b71dad8b00e2ecc5919895b8b0b7c5cea (patch) | |
tree | 29d8cff6513e8afac52d720ebd0df9ce165a5bb0 | |
parent | 99ff7950b29d694a8dacfe427dfab2b6eb2481f3 (diff) | |
download | ffmpeg-cf8b7e8b71dad8b00e2ecc5919895b8b0b7c5cea.tar.gz |
avfilter/vf_framerate: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_framerate.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_framerate.c b/libavfilter/vf_framerate.c index fff5b2232a..1497eab7dd 100644 --- a/libavfilter/vf_framerate.c +++ b/libavfilter/vf_framerate.c @@ -217,8 +217,6 @@ static av_cold void uninit(AVFilterContext *ctx) av_frame_free(&s->f1); } -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUVJ411P, @@ -232,9 +230,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - #define BLEND_FRAME_FUNC(nbits) \ static void blend_frames##nbits##_c(BLEND_FUNC_PARAMS) \ { \ @@ -446,7 +441,7 @@ const AVFilter ff_vf_framerate = { .uninit = uninit, FILTER_INPUTS(framerate_inputs), FILTER_OUTPUTS(framerate_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SLICE_THREADS, .activate = activate, }; |