mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
avfilter/vf_xfade: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
46c1c6beb9
commit
bb2b5254f9
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user