aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-01 03:32:01 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:29 +0200
commit71f9f7dc735eedea27839b51ca0e606b27dbe2f4 (patch)
tree3db75ee96b4788c87fc801e70f5f8951b4d9f461 /libavfilter
parent3a25adb895e34a9af1503064508dd2592a060772 (diff)
downloadffmpeg-71f9f7dc735eedea27839b51ca0e606b27dbe2f4.tar.gz
avfilter/vf_morpho: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_morpho.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_morpho.c b/libavfilter/vf_morpho.c
index f6fcef4356..67c83346a6 100644
--- a/libavfilter/vf_morpho.c
+++ b/libavfilter/vf_morpho.c
@@ -144,8 +144,6 @@ static const AVOption morpho_options[] = {
FRAMESYNC_DEFINE_CLASS(morpho, MorphoContext, fs);
-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,
@@ -168,9 +166,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static void min_fun(uint8_t *c, const uint8_t *a, const uint8_t *b, int x)
{
for (int i = 0; i < x; i++)
@@ -1026,7 +1021,7 @@ const AVFilter ff_vf_morpho = {
.uninit = uninit,
FILTER_INPUTS(morpho_inputs),
FILTER_OUTPUTS(morpho_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
.process_command = ff_filter_process_command,
};