[FFmpeg-devel] [PATCH] lavfi/testsrc: add "d" alias for the duration option
Stefano Sabatini
stefasab at gmail.com
Thu Jan 12 01:01:11 CET 2012
---
doc/filters.texi | 2 +-
libavfilter/vsrc_testsrc.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index d0075f2..99e157d 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -3230,7 +3230,7 @@ number or a valid video frame rate abbreviation. The default value is
@item sar
Set the sample aspect ratio of the sourced video.
- at item duration
+ at item duration, d
Set the video duration of the sourced video. The accepted syntax is:
@example
[-]HH[:MM[:SS[.m...]]]
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index 1383550..310f8c8 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -62,6 +62,7 @@ static const AVOption testsrc_options[]= {
{ "rate", "set video rate", OFFSET(rate), AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0 },
{ "r", "set video rate", OFFSET(rate), AV_OPT_TYPE_STRING, {.str = "25"}, 0, 0 },
{ "duration", "set video duration", OFFSET(duration), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 },
+ { "d", "set video duration", OFFSET(duration), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 },
{ "sar", "set video sample aspect ratio", OFFSET(sar), AV_OPT_TYPE_RATIONAL, {.dbl= 1}, 0, INT_MAX },
{ NULL },
};
--
1.7.5.4
More information about the ffmpeg-devel
mailing list