Commit 4044a233 authored by michael's avatar michael

set log level to AV_LOG_DEBUG if -debug ... is used


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4359 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f19394e7
...@@ -2291,6 +2291,7 @@ static void opt_error_concealment(const char *arg) ...@@ -2291,6 +2291,7 @@ static void opt_error_concealment(const char *arg)
static void opt_debug(const char *arg) static void opt_debug(const char *arg)
{ {
debug = atoi(arg); debug = atoi(arg);
av_log_set_level(AV_LOG_DEBUG);
} }
static void opt_vismv(const char *arg) static void opt_vismv(const char *arg)
......
...@@ -1179,6 +1179,8 @@ static int stream_component_open(VideoState *is, int stream_index) ...@@ -1179,6 +1179,8 @@ static int stream_component_open(VideoState *is, int stream_index)
codec = avcodec_find_decoder(enc->codec_id); codec = avcodec_find_decoder(enc->codec_id);
enc->debug_mv = debug_mv; enc->debug_mv = debug_mv;
enc->debug = debug; enc->debug = debug;
if(debug)
av_log_set_level(AV_LOG_DEBUG);
enc->workaround_bugs = workaround_bugs; enc->workaround_bugs = workaround_bugs;
enc->lowres = lowres; enc->lowres = lowres;
if(lowres) enc->flags |= CODEC_FLAG_EMU_EDGE; if(lowres) enc->flags |= CODEC_FLAG_EMU_EDGE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment