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-27 17:54:55 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 19:58:25 +0300
commitbb2b5254f9cf806dd1307cfa9e11ca40afda3b93 (patch)
treeb0cb431feafd136e5937692a98b76835dc569209
parent46c1c6beb905e7d436a7d9ef8e12aab64844462b (diff)
avfilter/vf_xfade: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavfilter/vf_xfade.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_xfade.c b/libavfilter/vf_xfade.c
index d5506a44a8..10f0edae52 100644
--- a/libavfilter/vf_xfade.c
+++ b/libavfilter/vf_xfade.c
@@ -117,8 +117,6 @@ typedef struct ThreadData {
float progress;
} ThreadData;
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUVA444P,
AV_PIX_FMT_YUVJ444P,
@@ -138,9 +136,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static av_cold void uninit(AVFilterContext *ctx)
{
XFadeContext *s = ctx->priv;
@@ -2005,6 +2000,6 @@ const AVFilter ff_vf_xfade = {
.uninit = uninit,
FILTER_INPUTS(xfade_inputs),
FILTER_OUTPUTS(xfade_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags = AVFILTER_FLAG_SLICE_THREADS,
};