summaryrefslogtreecommitdiff
path: root/libavfilter/vf_super2xsai.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 17:35:13 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:25 +0200
commit6ee0ec11a37850d3f1f30b632b88392b9a69d18e (patch)
treed025803c8f7e7108e07d150f2ed5d4927bcc654c /libavfilter/vf_super2xsai.c
parentedc18ddaa02f3ddd9a9bbec060878920263da4b7 (diff)
avfilter/vf_super2xsai: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_super2xsai.c')
-rw-r--r--libavfilter/vf_super2xsai.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_super2xsai.c b/libavfilter/vf_super2xsai.c
index 11532925bb..3fcc035803 100644
--- a/libavfilter/vf_super2xsai.c
+++ b/libavfilter/vf_super2xsai.c
@@ -245,8 +245,6 @@ static int super2xsai(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
return 0;
}
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_RGBA, AV_PIX_FMT_BGRA, AV_PIX_FMT_ARGB, AV_PIX_FMT_ABGR,
AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24,
@@ -255,9 +253,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int config_input(AVFilterLink *inlink)
{
Super2xSaIContext *s = inlink->dst->priv;
@@ -361,6 +356,6 @@ const AVFilter ff_vf_super2xsai = {
.priv_size = sizeof(Super2xSaIContext),
FILTER_INPUTS(super2xsai_inputs),
FILTER_OUTPUTS(super2xsai_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags = AVFILTER_FLAG_SLICE_THREADS,
};