set log debug when avformat debug is set
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 11 Jun 2008 23:45:00 +0000 (23:45 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 11 Jun 2008 23:45:00 +0000 (23:45 +0000)
Originally committed as revision 13750 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index dd0eeb8..0ce61a3 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2214,7 +2214,7 @@ static int opt_default(const char *opt, const char *arg){
     opt_names= av_realloc(opt_names, sizeof(void*)*(opt_name_count+1));
     opt_names[opt_name_count++]= o->name;
 
-    if(avctx_opts[0]->debug)
+    if(avctx_opts[0]->debug || avformat_opts->debug)
         av_log_set_level(AV_LOG_DEBUG);
     return 0;
 }