avfilter/vf_pseudocolor: Use formats list instead of query function

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-27 15:58:29 +02:00
parent 8d06c2e7eb
commit dc57da3b1a
1 changed files with 1 additions and 6 deletions

View File

@ -279,11 +279,6 @@ static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_NONE
};
static int query_formats(AVFilterContext *ctx)
{
return ff_set_common_formats_from_list(ctx, pix_fmts);
}
static inline float lerpf(float v0, float v1, float f)
{
return v0 + (v1 - v0) * f;
@ -924,7 +919,7 @@ const AVFilter ff_vf_pseudocolor = {
.uninit = uninit,
FILTER_INPUTS(inputs),
FILTER_OUTPUTS(outputs),
FILTER_QUERY_FUNC(query_formats),
FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
.process_command = process_command,
};