Commit a1a4aae2 authored by takis's avatar takis

Let ffplay support "-version".

Patch by: Stefano Sabatini, stefano.sabatini-lala poste it


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13208 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 535fb6e9
...@@ -31,6 +31,8 @@ ffplay [options] @file{input_file} ...@@ -31,6 +31,8 @@ ffplay [options] @file{input_file}
@table @option @table @option
@item -h @item -h
show help show help
@item -version
show version
@item -x @var{width} @item -x @var{width}
force displayed width force displayed width
@item -y @var{height} @item -y @var{height}
......
...@@ -2438,8 +2438,15 @@ static void opt_show_help(void) ...@@ -2438,8 +2438,15 @@ static void opt_show_help(void)
exit(0); exit(0);
} }
static void opt_show_version(void)
{
show_version(program_name);
exit(0);
}
static const OptionDef options[] = { static const OptionDef options[] = {
{ "h", 0, {(void*)opt_show_help}, "show help" }, { "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" }, { "x", HAS_ARG | OPT_FUNC2, {(void*)opt_width}, "force displayed width", "width" },
{ "y", HAS_ARG | OPT_FUNC2, {(void*)opt_height}, "force displayed height", "height" }, { "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" }, { "s", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_size}, "set frame size (WxH or abbreviation)", "size" },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment