summaryrefslogtreecommitdiff
path: root/libavfilter/vf_shear.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 17:42:18 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:26 +0200
commit10ff576efdaecb8ff86dcfd3cce70dd857adaf01 (patch)
tree9b5babba738ada86ca97db48d75008856d61e46f /libavfilter/vf_shear.c
parenta6d56a806968bd6c8fea6c09c547374f6a4f1f32 (diff)
downloadffmpeg-10ff576efdaecb8ff86dcfd3cce70dd857adaf01.tar.gz
avfilter/vf_shear: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_shear.c')
-rw-r--r--libavfilter/vf_shear.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_shear.c b/libavfilter/vf_shear.c
index 9c291bc152..1a007cc492 100644
--- a/libavfilter/vf_shear.c
+++ b/libavfilter/vf_shear.c
@@ -85,8 +85,6 @@ static av_cold int init(AVFilterContext *ctx)
return 0;
}
-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_GRAY12, AV_PIX_FMT_GRAY14,
@@ -114,9 +112,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
#define NN(type, name) \
static int filter_slice_nn##name(AVFilterContext *ctx, void *arg, int jobnr, \
int nb_jobs) \
@@ -319,7 +314,7 @@ const AVFilter ff_vf_shear = {
.init = init,
FILTER_INPUTS(inputs),
FILTER_OUTPUTS(outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.priv_class = &shear_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
.process_command = process_command,