mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
lavfi/vf_tile: convert to query_func2()
This commit is contained in:
parent
14ece0bf58
commit
ce5aa74045
@ -111,9 +111,12 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int config_props(AVFilterLink *outlink)
|
static int config_props(AVFilterLink *outlink)
|
||||||
@ -292,6 +295,6 @@ const AVFilter ff_vf_tile = {
|
|||||||
.priv_size = sizeof(TileContext),
|
.priv_size = sizeof(TileContext),
|
||||||
FILTER_INPUTS(tile_inputs),
|
FILTER_INPUTS(tile_inputs),
|
||||||
FILTER_OUTPUTS(tile_outputs),
|
FILTER_OUTPUTS(tile_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_QUERY_FUNC2(query_formats),
|
||||||
.priv_class = &tile_class,
|
.priv_class = &tile_class,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user