aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2006-06-25 16:12:27 +0000
committerLuca Barbato <lu_zero@gentoo.org>2006-06-25 16:12:27 +0000
commit521f258701c6e7f60a10ec73ea7e68d060b9ddb2 (patch)
tree48e0234842548b5a3b50350c77a65196548151c9 /ffplay.c
parentea02862a9b524dde425b6170ff5d94dc3d45f7b6 (diff)
downloadffmpeg-521f258701c6e7f60a10ec73ea7e68d060b9ddb2.tar.gz
Make debug work early on ffplay
Originally committed as revision 5525 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index 7dc5c6033b..bbc4ad3685 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1606,8 +1606,6 @@ static int stream_component_open(VideoState *is, int stream_index)
codec = avcodec_find_decoder(enc->codec_id);
enc->debug_mv = debug_mv;
enc->debug = debug;
- if(debug)
- av_log_set_level(AV_LOG_DEBUG);
enc->workaround_bugs = workaround_bugs;
enc->lowres = lowres;
if(lowres) enc->flags |= CODEC_FLAG_EMU_EDGE;
@@ -2319,6 +2317,7 @@ void opt_seek(const char *arg)
static void opt_debug(const char *arg)
{
+ av_log_set_level(atoi(arg));
debug = atoi(arg);
}