Browse Source

Let ffplay support "-version".

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

Originally committed as revision 13208 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Stefano Sabatini Panagiotis Issaris 17 years ago
parent
commit
1b068b2984
2 changed files with 9 additions and 0 deletions
  1. +2
    -0
      doc/ffplay-doc.texi
  2. +7
    -0
      ffplay.c

+ 2
- 0
doc/ffplay-doc.texi View File

@@ -31,6 +31,8 @@ ffplay [options] @file{input_file}
@table @option
@item -h
show help
@item -version
show version
@item -x @var{width}
force displayed width
@item -y @var{height}


+ 7
- 0
ffplay.c View File

@@ -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" },


Loading…
Cancel
Save