mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
lavfi/vf_pad: switch to query_func2()
This commit is contained in:
@@ -72,9 +72,12 @@ enum var_name {
|
||||
VARS_NB
|
||||
};
|
||||
|
||||
static int query_formats(AVFilterContext *ctx)
|
||||
static int query_formats(const AVFilterContext *ctx,
|
||||
AVFilterFormatsConfig **cfg_in,
|
||||
AVFilterFormatsConfig **cfg_out)
|
||||
{
|
||||
return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
|
||||
return ff_set_common_formats2(ctx, cfg_in, cfg_out,
|
||||
ff_draw_supported_pixel_formats(0));
|
||||
}
|
||||
|
||||
enum EvalMode {
|
||||
@@ -458,5 +461,5 @@ const AVFilter ff_vf_pad = {
|
||||
.priv_class = &pad_class,
|
||||
FILTER_INPUTS(avfilter_vf_pad_inputs),
|
||||
FILTER_OUTPUTS(avfilter_vf_pad_outputs),
|
||||
FILTER_QUERY_FUNC(query_formats),
|
||||
FILTER_QUERY_FUNC2(query_formats),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user