From 0e0e3db189d3875de1225f64b685475a2bf4682b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Tue, 11 Dec 2012 18:12:07 +0100 Subject: [PATCH] lavfi/fps: add shorthand. --- libavfilter/vf_fps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index 8e7880cfe9..4c8444d6f2 100644 --- a/libavfilter/vf_fps.c +++ b/libavfilter/vf_fps.c @@ -74,12 +74,13 @@ AVFILTER_DEFINE_CLASS(fps); static av_cold int init(AVFilterContext *ctx, const char *args) { FPSContext *s = ctx->priv; + const char *shorthand[] = { "fps", "round", NULL }; int ret; s->class = &fps_class; 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", args); return ret;