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
423 return 0;423 return 0;
424}424}
425 425
426int 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
426int opt_timelimit(const char *opt, const char *arg)432int opt_timelimit(const char *opt, const char *arg)
427{433{
428#if HAVE_SETRLIMIT434#if HAVE_SETRLIMIT
cmdutils.h+2−0
@@ -76,6 +76,8 @@ int opt_default(const char *opt, const char *arg); · 75 unmodified lines
76 */76 */
77int opt_loglevel(const char *opt, const char *arg);77int opt_loglevel(const char *opt, const char *arg);
78 78
79int opt_codec_debug(const char *opt, const char *arg);
80
79/**81/**
80 * Limit the execution time.82 * Limit the execution time.
81 */83 */
cmdutils_common_opts.h+1−0
@@ -13,3 +13,4 @@ · 12 unmodified lines
13 { "sample_fmts", OPT_EXIT, {.func_arg = show_sample_fmts }, "show available audio sample formats" },13 { "sample_fmts", OPT_EXIT, {.func_arg = show_sample_fmts }, "show available audio sample formats" },
14 { "loglevel", HAS_ARG, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" },14 { "loglevel", HAS_ARG, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" },
15 { "v", HAS_ARG, {(void*)opt_loglevel}, "set libav* logging level", "loglevel" },15 { "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