History

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

Stefano Sabatini committed 14 years ago

Commit a8b0ece1 parent 794006f3 files · +3 −2Browse files

Unified · Split

3 files
  1. doc/filters.texi +1 −1
  2. libavfilter/avfilter.h +1 −1
  3. libavfilter/vsrc_testsrc.c +1 −0
doc/filters.texi+1−1
@@ -3230,7 +3230,7 @@ number or a valid video frame rate abbreviation. The default value is · 3229 unmodified lines
32303230 @item sar
32313231 Set the sample aspect ratio of the sourced video.
32323232
3233−@item duration
3233+@item duration, d
32343234 Set the video duration of the sourced video. The accepted syntax is:
32353235 @example
32363236 [-]HH[:MM[:SS[.m...]]]
libavfilter/avfilter.h+1−1
@@ -31,7 +31,7 @@ · 30 unmodified lines
3131
3232 #define LIBAVFILTER_VERSION_MAJOR 2
3333 #define LIBAVFILTER_VERSION_MINOR 58
34−#define LIBAVFILTER_VERSION_MICRO 100
34+#define LIBAVFILTER_VERSION_MICRO 101
3535
3636 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
3737 LIBAVFILTER_VERSION_MINOR, \
libavfilter/vsrc_testsrc.c+1−0
@@ -62,6 +62,7 @@ static const AVOption testsrc_options[]= { · 61 unmodified lines
6262 { "rate", "set video rate", OFFSET(rate), AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0 },
6363 { "r", "set video rate", OFFSET(rate), AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0 },
6464 { "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 },
6566 { "sar", "set video sample aspect ratio", OFFSET(sar), AV_OPT_TYPE_RATIONAL, {.dbl= 1}, 0, INT_MAX },
6667 { NULL },
6768 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t