diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 23:15:56 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:28 +0200 |
commit | 05df3f3f9230d5a72a74c93bdf2c47c6de85bd50 (patch) | |
tree | 7a0a6c5e6393de23113e3299112f406df93e64a2 /libavfilter | |
parent | d60c3303ac399ecfce64ea7aa073cd376c6a7a35 (diff) |
avfilter/vf_cropdetect: 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_cropdetect.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c index 22e8885e01..cc6478fa20 100644 --- a/libavfilter/vf_cropdetect.c +++ b/libavfilter/vf_cropdetect.c @@ -44,8 +44,6 @@ typedef struct CropDetectContext { int max_outliers; } CropDetectContext; -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUVJ422P, @@ -63,9 +61,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static int checkline(void *ctx, const unsigned char *src, int stride, int len, int bpp) { int total = 0; @@ -277,6 +272,6 @@ const AVFilter ff_vf_cropdetect = { .init = init, FILTER_INPUTS(avfilter_vf_cropdetect_inputs), FILTER_OUTPUTS(avfilter_vf_cropdetect_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, }; |