@@ -69,8 +69,6 @@ static const AVOption signature_options[] = {
AVFILTER_DEFINE_CLASS(signature);
-static int query_formats(AVFilterContext *ctx)
-{
/* all formats with a separate gray value */
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_GRAY8,
@@ -84,9 +82,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int config_input(AVFilterLink *inlink)
{
AVFilterContext *ctx = inlink->dst;
@@ -762,6 +757,6 @@ const AVFilter ff_vf_signature = {
.uninit = uninit,
FILTER_OUTPUTS(signature_outputs),
.inputs = NULL,
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags = AVFILTER_FLAG_DYNAMIC_INPUTS,
};
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavfilter/vf_signature.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)