diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:07:56 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:26 +0200 |
commit | 69334c65d81f678afbc8b11dbf3d1315da035e5a (patch) | |
tree | e1a90d34a8a1e5a80120e878a9b7a7666b30cd12 | |
parent | e586e6dabd13cacc19a5fbe993b5361cc04bf7ee (diff) | |
download | ffmpeg-69334c65d81f678afbc8b11dbf3d1315da035e5a.tar.gz |
avfilter/vf_pullup: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_pullup.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_pullup.c b/libavfilter/vf_pullup.c index 4b02e8c255..32cb1745ba 100644 --- a/libavfilter/vf_pullup.c +++ b/libavfilter/vf_pullup.c @@ -52,8 +52,6 @@ static const AVOption pullup_options[] = { AVFILTER_DEFINE_CLASS(pullup); -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUVJ420P, @@ -64,9 +62,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - #define ABS(a) (((a) ^ ((a) >> 31)) - ((a) >> 31)) static int diff_c(const uint8_t *a, const uint8_t *b, ptrdiff_t s) @@ -767,5 +762,5 @@ const AVFilter ff_vf_pullup = { .uninit = uninit, FILTER_INPUTS(pullup_inputs), FILTER_OUTPUTS(pullup_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), }; |