[FFmpeg-devel] [PATCH] Implement a cmdutils functions for listing available elements

Michael Niedermayer michaelni
Sat Nov 28 12:18:52 CET 2009


On Sun, Nov 22, 2009 at 06:41:04PM +0100, Stefano Sabatini wrote:

[...]
> Index: ffmpeg.c
> ===================================================================
> --- ffmpeg.c	(revision 20577)
> +++ ffmpeg.c	(working copy)
> @@ -3829,9 +3829,7 @@
>      { "h", OPT_EXIT, {(void*)show_help}, "show help" },
>      { "version", OPT_EXIT, {(void*)show_version}, "show version" },
>      { "formats"  , OPT_EXIT, {(void*)show_formats  }, "show available formats" },
> -    { "codecs"   , OPT_EXIT, {(void*)show_codecs   }, "show available codecs" },
> -    { "bsfs"     , OPT_EXIT, {(void*)show_bsfs     }, "show available bit stream filters" },
> -    { "protocols", OPT_EXIT, {(void*)show_protocols}, "show available protocols" },
> +    { "list", HAS_ARG | OPT_EXIT | OPT_FUNC2, {(void*)opt_list}, "list available elements" },
>      { "f", HAS_ARG, {(void*)opt_format}, "force format", "fmt" },
>      { "i", HAS_ARG, {(void*)opt_input_file}, "input file name", "filename" },
>      { "y", OPT_BOOL, {(void*)&file_overwrite}, "overwrite output files" },

The existing options are documented in the help output, yours is not


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091128/3a7aa047/attachment.pgp>



More information about the ffmpeg-devel mailing list