avfilter/vf_super2xsai: Use formats list instead of query function

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/369/head
Andreas Rheinhardt 3 years ago
parent edc18ddaa0
commit 6ee0ec11a3
  1. 7
      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,
};

Loading…
Cancel
Save