[FFmpeg-cvslog] r13208 - in trunk: doc/ffplay-doc.texi ffplay.c
takis
subversion
Wed May 21 16:12:45 CEST 2008
Author: takis
Date: Wed May 21 16:12:45 2008
New Revision: 13208
Log:
Let ffplay support "-version".
Patch by: Stefano Sabatini, stefano.sabatini-lala poste it
Modified:
trunk/doc/ffplay-doc.texi
trunk/ffplay.c
Modified: trunk/doc/ffplay-doc.texi
==============================================================================
--- trunk/doc/ffplay-doc.texi (original)
+++ trunk/doc/ffplay-doc.texi Wed May 21 16:12:45 2008
@@ -31,6 +31,8 @@ ffplay [options] @file{input_file}
@table @option
@item -h
show help
+ at item -version
+show version
@item -x @var{width}
force displayed width
@item -y @var{height}
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c (original)
+++ trunk/ffplay.c Wed May 21 16:12:45 2008
@@ -2438,8 +2438,15 @@ static void opt_show_help(void)
exit(0);
}
+static void opt_show_version(void)
+{
+ show_version(program_name);
+ exit(0);
+}
+
static const OptionDef options[] = {
{ "h", 0, {(void*)opt_show_help}, "show help" },
+ { "version", 0, {(void*)opt_show_version}, "show version" },
{ "x", HAS_ARG | OPT_FUNC2, {(void*)opt_width}, "force displayed width", "width" },
{ "y", HAS_ARG | OPT_FUNC2, {(void*)opt_height}, "force displayed height", "height" },
{ "s", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_size}, "set frame size (WxH or abbreviation)", "size" },
More information about the ffmpeg-cvslog
mailing list