Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-28 00:08:27 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 19:58:28 +0300
commitf41708eb3ad1387d7ca51efaa148b15794b42a12 (patch)
treee6da96cb5926aa799f2e6fc58b9d4c55d994bf9c /libavfilter/vf_delogo.c
parent19cdebc6acdf6d373472d3ca4660093f49c15ec2 (diff)
avfilter/vf_delogo: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_delogo.c')
-rw-r--r--libavfilter/vf_delogo.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c
index ce24aa92a7..12108dafb1 100644
--- a/libavfilter/vf_delogo.c
+++ b/libavfilter/vf_delogo.c
@@ -225,17 +225,12 @@ static av_cold void uninit(AVFilterContext *ctx)
av_expr_free(s->h_pexpr); s->h_pexpr = NULL;
}
-
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV420P,
AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV440P,
AV_PIX_FMT_YUVA420P, AV_PIX_FMT_GRAY8,
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
static av_cold int init(AVFilterContext *ctx)
{
@@ -402,6 +397,6 @@ const AVFilter ff_vf_delogo = {
.uninit = uninit,
FILTER_INPUTS(avfilter_vf_delogo_inputs),
FILTER_OUTPUTS(avfilter_vf_delogo_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
};