History

cmdutils: Fix loglevel for -debug

Michael Niedermayer committed 15 years ago

Commit e9adeee1 parent 8937afd3 files · +9 −0Browse files

Unified · Split

3 files
  1. cmdutils.c +6 −0
  2. cmdutils.h +2 −0
  3. cmdutils_common_opts.h +1 −0
cmdutils.c+6−0
@@ -423,6 +423,12 @@ int opt_loglevel(const char *opt, const char *arg) · 422 unmodified lines
423423 return 0;
424424 }
425425
426+int opt_codec_debug(const char *opt, const char *arg)
427+{
428+ av_log_set_level(AV_LOG_DEBUG);
429+ return opt_default(opt, arg);
430+}
431+
426432 int opt_timelimit(const char *opt, const char *arg)
427433 {
428434 #if HAVE_SETRLIMIT
cmdutils.h+2−0
@@ -76,6 +76,8 @@ int opt_default(const char *opt, const char *arg); · 75 unmodified lines
7676 */
7777 int opt_loglevel(const char *opt, const char *arg);
7878
79+int opt_codec_debug(const char *opt, const char *arg);
80+
7981 /**
8082 * Limit the execution time.
8183 */
cmdutils_common_opts.h+1−0
@@ -13,3 +13,4 @@ · 12 unmodified lines
1313 { "sample_fmts", OPT_EXIT, {.func_arg = show_sample_fmts }, "show available audio sample formats" },
1414 { "loglevel", HAS_ARG, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" },
1515 { "v", HAS_ARG, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" },
16+ { "debug", HAS_ARG, {(void*)opt_codec_debug}, "set debug flags", "flags" },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t