avfilter/vf_signature: Use formats list instead of query function

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/369/head
Andreas Rheinhardt 3 years ago
parent 59eb64ce0e
commit f4ea416a13
  1. 7
      libavfilter/vf_signature.c

@ -69,8 +69,6 @@ static const AVOption signature_options[] = {
AVFILTER_DEFINE_CLASS(signature); AVFILTER_DEFINE_CLASS(signature);
static int query_formats(AVFilterContext *ctx)
{
/* all formats with a separate gray value */ /* all formats with a separate gray value */
static const enum AVPixelFormat pix_fmts[] = { static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY8,
@ -84,9 +82,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE AV_PIX_FMT_NONE
}; };
return ff_set_common_formats_from_list(ctx, pix_fmts);
}
static int config_input(AVFilterLink *inlink) static int config_input(AVFilterLink *inlink)
{ {
AVFilterContext *ctx = inlink->dst; AVFilterContext *ctx = inlink->dst;
@ -762,6 +757,6 @@ const AVFilter ff_vf_signature = {
.uninit = uninit, .uninit = uninit,
FILTER_OUTPUTS(signature_outputs), FILTER_OUTPUTS(signature_outputs),
.inputs = NULL, .inputs = NULL,
FILTER_QUERY_FUNC(query_formats), FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags = AVFILTER_FLAG_DYNAMIC_INPUTS, .flags = AVFILTER_FLAG_DYNAMIC_INPUTS,
}; };

Loading…
Cancel
Save