Browse code

lavfi/testsrc: add "d" alias for the duration option

Stefano Sabatini authored on 2012/01/10 19:04:59
Showing 3 changed files
... ...
@@ -3230,7 +3230,7 @@ number or a valid video frame rate abbreviation. The default value is
3230 3230
 @item sar
3231 3231
 Set the sample aspect ratio of the sourced video.
3232 3232
 
3233
-@item duration
3233
+@item duration, d
3234 3234
 Set the video duration of the sourced video. The accepted syntax is:
3235 3235
 @example
3236 3236
 [-]HH[:MM[:SS[.m...]]]
... ...
@@ -31,7 +31,7 @@
31 31
 
32 32
 #define LIBAVFILTER_VERSION_MAJOR  2
33 33
 #define LIBAVFILTER_VERSION_MINOR 58
34
-#define LIBAVFILTER_VERSION_MICRO 100
34
+#define LIBAVFILTER_VERSION_MICRO 101
35 35
 
36 36
 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
37 37
                                                LIBAVFILTER_VERSION_MINOR, \
... ...
@@ -62,6 +62,7 @@ static const AVOption testsrc_options[]= {
62 62
     { "rate",     "set video rate",     OFFSET(rate),     AV_OPT_TYPE_STRING, {.str = "25"},      0, 0 },
63 63
     { "r",        "set video rate",     OFFSET(rate),     AV_OPT_TYPE_STRING, {.str = "25"},      0, 0 },
64 64
     { "duration", "set video duration", OFFSET(duration), AV_OPT_TYPE_STRING, {.str = NULL},      0, 0 },
65
+    { "d",        "set video duration", OFFSET(duration), AV_OPT_TYPE_STRING, {.str = NULL},      0, 0 },
65 66
     { "sar",      "set video sample aspect ratio", OFFSET(sar), AV_OPT_TYPE_RATIONAL, {.dbl= 1},  0, INT_MAX },
66 67
     { NULL },
67 68
 };