aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 21:45:38 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:27 +0200
commitdb48d4234039e7653a684964ca29404ef1893afb (patch)
treefe46762d9e4236fa03d50d9ea9f89df1aa96380c
parent502b48c3575c35e23fb5d6fe1add200bdc525b74 (diff)
downloadffmpeg-db48d4234039e7653a684964ca29404ef1893afb.tar.gz
avfilter/vf_hysteresis: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavfilter/vf_hysteresis.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_hysteresis.c b/libavfilter/vf_hysteresis.c
index abdf224f83..e28926f576 100644
--- a/libavfilter/vf_hysteresis.c
+++ b/libavfilter/vf_hysteresis.c
@@ -58,8 +58,6 @@ static const AVOption hysteresis_options[] = {
{ NULL }
};
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P,
AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P,
@@ -81,9 +79,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int process_frame(FFFrameSync *fs)
{
AVFilterContext *ctx = fs->parent;
@@ -377,7 +372,7 @@ const AVFilter ff_vf_hysteresis = {
.activate = activate,
FILTER_INPUTS(hysteresis_inputs),
FILTER_OUTPUTS(hysteresis_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.priv_class = &hysteresis_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
};