diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-06-07 21:53:56 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-06-07 21:53:56 +0000 |
commit | 1ab1f099ebb03f55db1970a200497f3b28be17bf (patch) | |
tree | 8b879612cb82b8aabbb83af465332b5a81fea4a6 /ffplay.c | |
parent | fc565b22fcb0896b814780856abd6bffe396cfa1 (diff) | |
download | ffmpeg-1ab1f099ebb03f55db1970a200497f3b28be17bf.tar.gz |
set log level to AV_LOG_DEBUG if -debug ... is used
Originally committed as revision 4359 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1179,6 +1179,8 @@ 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; |