diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-12-11 18:12:07 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-12-11 18:12:11 +0100 |
commit | 0e0e3db189d3875de1225f64b685475a2bf4682b (patch) | |
tree | bc397165a1ac0b77c3421fa1406a0f1f3684405c /libavfilter | |
parent | 7d05bbb656d35255f6053b8cedfbbf6226683edd (diff) | |
download | ffmpeg-streaming-0e0e3db189d3875de1225f64b685475a2bf4682b.zip ffmpeg-streaming-0e0e3db189d3875de1225f64b685475a2bf4682b.tar.gz |
lavfi/fps: add shorthand.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_fps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index 8e7880c..4c8444d 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; |