diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 22:14:51 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 19:58:26 +0300 |
commit | 3a33cdfa2331b1509eb3cd54c277faf717edc3a0 (patch) | |
tree | cd59bd9e1046fa3ec28ca37adf69cbd1bc63d506 /libavfilter/vf_photosensitivity.c | |
parent | 5c3a2439360fab667307e07ff825ebc91d86799f (diff) |
avfilter/vf_photosensitivity: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_photosensitivity.c')
-rw-r--r-- | libavfilter/vf_photosensitivity.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/libavfilter/vf_photosensitivity.c b/libavfilter/vf_photosensitivity.c index 18a210c292..1bb984cc93 100644 --- a/libavfilter/vf_photosensitivity.c +++ b/libavfilter/vf_photosensitivity.c @@ -70,16 +70,6 @@ static const AVOption photosensitivity_options[] = { AVFILTER_DEFINE_CLASS(photosensitivity); -static int query_formats(AVFilterContext *ctx) -{ - static const enum AVPixelFormat pixel_fmts[] = { - AV_PIX_FMT_RGB24, - AV_PIX_FMT_BGR24, - AV_PIX_FMT_NONE - }; - return ff_set_common_formats_from_list(ctx, pixel_fmts); -} - typedef struct ThreadData_convert_frame { AVFrame *in; @@ -334,5 +324,5 @@ const AVFilter ff_vf_photosensitivity = { .uninit = uninit, FILTER_INPUTS(inputs), FILTER_OUTPUTS(outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS(AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24), }; |