diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 17:41:23 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:26 +0200 |
commit | a6d56a806968bd6c8fea6c09c547374f6a4f1f32 (patch) | |
tree | 9b774e6cf41af3ad55fe31d855a4d4d39cfcfca9 | |
parent | 8510758e1de6c2996b45925a9ce97b6387b5c616 (diff) | |
download | ffmpeg-a6d56a806968bd6c8fea6c09c547374f6a4f1f32.tar.gz |
avfilter/vf_shufflepixels: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vf_shufflepixels.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_shufflepixels.c b/libavfilter/vf_shufflepixels.c index e89e3c027f..7b120d20f8 100644 --- a/libavfilter/vf_shufflepixels.c +++ b/libavfilter/vf_shufflepixels.c @@ -56,8 +56,6 @@ typedef struct ShufflePixelsContext { int (*shuffle_pixels)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs); } ShufflePixelsContext; -static int query_formats(AVFilterContext *ctx) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY14, AV_PIX_FMT_GRAY16, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUVA444P, @@ -68,8 +66,6 @@ static int query_formats(AVFilterContext *ctx) AV_PIX_FMT_YUV444P12, AV_PIX_FMT_YUV444P14, AV_PIX_FMT_YUV444P16, AV_PIX_FMT_YUVA444P16, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} static void make_horizontal_map(AVFilterContext *ctx) { @@ -452,6 +448,6 @@ const AVFilter ff_vf_shufflepixels = { .uninit = uninit, FILTER_INPUTS(shufflepixels_inputs), FILTER_OUTPUTS(shufflepixels_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, }; |