]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Add support to the -loglevel option.
authorstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 26 Sep 2009 17:18:02 +0000 (17:18 +0000)
committerstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 26 Sep 2009 17:18:02 +0000 (17:18 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20027 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

doc/ffplay-doc.texi
ffplay.c

index 2c34890c16b64509d89ff0ef26e894acba2ae7d7..a92039653ba4c4581d86ed16632d8775a94c59e2 100644 (file)
@@ -56,6 +56,19 @@ Seek by bytes.
 Disable graphical display.
 @item -f @var{fmt}
 Force format.
+@item -loglevel @var{loglevel}
+Set the logging level used by the library.
+@var{loglevel} is a number or a string containing one of the following values:
+@table @samp
+@item quiet
+@item panic
+@item fatal
+@item error
+@item warning
+@item info
+@item verbose
+@item debug
+@end table
 @end table
 
 @section Advanced options
index 814efc521541639186c9e0de7e37f0256833f877..c47c4c2b9f3db9e7a9c61c053d38723f53bf1143 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -2487,6 +2487,7 @@ static const OptionDef options[] = {
     { "sync", HAS_ARG | OPT_FUNC2 | OPT_EXPERT, {(void*)opt_sync}, "set audio-video sync. type (type=audio/video/ext)", "type" },
     { "threads", HAS_ARG | OPT_FUNC2 | OPT_EXPERT, {(void*)opt_thread_count}, "thread count", "count" },
     { "default", OPT_FUNC2 | HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {(void*)opt_default}, "generic catch all option", "" },
+    { "loglevel", HAS_ARG | OPT_FUNC2, {(void*)opt_loglevel}, "set libav* logging level", "logging level number or string" },
     { NULL, },
 };