static av_cold int init(AVFilterContext *ctx, const char *args)
{
TileContext *tile = ctx->priv;
- static const char *shorthand[] = { "layout", "nb_frames", "margin", "padding", NULL };
- int ret;
-
- tile->class = &tile_class;
- av_opt_set_defaults(tile);
-
- if ((ret = av_opt_set_from_string(tile, args, shorthand, "=", ":")) < 0)
- return ret;
if (tile->w > REASONABLE_SIZE || tile->h > REASONABLE_SIZE) {
av_log(ctx, AV_LOG_ERROR, "Tile size %ux%u is insane.\n",
{ NULL }
};
+static const char *const shorthand[] =
+ { "layout", "nb_frames", "margin", "padding", NULL };
+
AVFilter avfilter_vf_tile = {
.name = "tile",
.description = NULL_IF_CONFIG_SMALL("Tile several successive frames together."),
.inputs = tile_inputs,
.outputs = tile_outputs,
.priv_class = &tile_class,
+ .shorthand = shorthand,
};