1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavfi/fps: add shorthand.

This commit is contained in:
Clément Bœsch 2012-12-11 18:12:07 +01:00
parent 7d05bbb656
commit 0e0e3db189

View File

@ -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;