lavfi/vsrc_perlin: convert to query_func2()

master
Anton Khirnov 2 months ago
parent e0aa644978
commit c034213083
  1. 8
      libavfilter/vsrc_perlin.c

@ -142,11 +142,13 @@ static int request_frame(AVFilterLink *outlink)
return ff_filter_frame(outlink, picref); return ff_filter_frame(outlink, picref);
} }
static int query_formats(AVFilterContext *ctx) static int query_formats(const AVFilterContext *ctx,
AVFilterFormatsConfig **cfg_in,
AVFilterFormatsConfig **cfg_out)
{ {
enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE }; enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE };
return ff_set_common_formats_from_list(ctx, pix_fmts); return ff_set_common_formats_from_list2(ctx, cfg_in, cfg_out, pix_fmts);
} }
static const AVFilterPad perlin_outputs[] = { static const AVFilterPad perlin_outputs[] = {
@ -166,5 +168,5 @@ const AVFilter ff_vsrc_perlin = {
.init = init, .init = init,
.inputs = NULL, .inputs = NULL,
FILTER_OUTPUTS(perlin_outputs), FILTER_OUTPUTS(perlin_outputs),
FILTER_QUERY_FUNC(query_formats), FILTER_QUERY_FUNC2(query_formats),
}; };

Loading…
Cancel
Save