diff options
Diffstat (limited to 'libavfilter')
-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), }; |