summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 22:03:44 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:28 +0200
commit346739707c1717514240f4d6cccc67fd2b307ac5 (patch)
tree0c248f08d4b6702c3a3651ee2a19bf6479959690
parente5a6ae8d837177dc1aa6daf60aa653b33eccb2fe (diff)
avfilter/vf_epx: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavfilter/vf_epx.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_epx.c b/libavfilter/vf_epx.c
index be0749463f..7da803dd49 100644
--- a/libavfilter/vf_epx.c
+++ b/libavfilter/vf_epx.c
@@ -221,16 +221,11 @@ static int config_output(AVFilterLink *outlink)
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_NONE,
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
{
AVFilterContext *ctx = inlink->dst;
@@ -275,7 +270,7 @@ const AVFilter ff_vf_epx = {
.description = NULL_IF_CONFIG_SMALL("Scale the input using EPX algorithm."),
FILTER_INPUTS(inputs),
FILTER_OUTPUTS(outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.priv_size = sizeof(EPXContext),
.priv_class = &epx_class,
.flags = AVFILTER_FLAG_SLICE_THREADS,