Commit 0e0e3db1 authored by Clément Bœsch's avatar Clément Bœsch

lavfi/fps: add shorthand.

parent 7d05bbb6
...@@ -74,12 +74,13 @@ AVFILTER_DEFINE_CLASS(fps); ...@@ -74,12 +74,13 @@ AVFILTER_DEFINE_CLASS(fps);
static av_cold int init(AVFilterContext *ctx, const char *args) static av_cold int init(AVFilterContext *ctx, const char *args)
{ {
FPSContext *s = ctx->priv; FPSContext *s = ctx->priv;
const char *shorthand[] = { "fps", "round", NULL };
int ret; int ret;
s->class = &fps_class; s->class = &fps_class;
av_opt_set_defaults(s); av_opt_set_defaults(s);
if ((ret = av_set_options_string(s, args, "=", ":")) < 0) { if ((ret = av_opt_set_from_string(s, args, shorthand, "=", ":")) < 0) {
av_log(ctx, AV_LOG_ERROR, "Error parsing the options string %s.\n", av_log(ctx, AV_LOG_ERROR, "Error parsing the options string %s.\n",
args); args);
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment