mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-25 05:59:15 +00:00
cmdutils: remove OPT_FUNC2
Make ff* tools only accept opt_* functions taking two arguments. The distinction between functions with one and two arguments is quite pointless. Simplify parse_options() code.
This commit is contained in:
parent
78046dadc3
commit
eb8bc57240
6 changed files with 148 additions and 133 deletions
|
@ -10,4 +10,4 @@
|
|||
{ "protocols", OPT_EXIT, {(void*)show_protocols}, "show available protocols" },
|
||||
{ "filters", OPT_EXIT, {(void*)show_filters }, "show available filters" },
|
||||
{ "pix_fmts" , OPT_EXIT, {(void*)show_pix_fmts }, "show available pixel formats" },
|
||||
{ "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" },
|
||||
{ "loglevel", HAS_ARG, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue