[Ffmpeg-cvslog] r7882 - in trunk: ffmpeg.c ffplay.c libavcodec/utils.c

lucabe subversion
Thu Feb 8 19:55:37 CET 2007


Author: lucabe
Date: Thu Feb  8 19:55:36 2007
New Revision: 7882

Modified:
   trunk/ffmpeg.c
   trunk/ffplay.c
   trunk/libavcodec/utils.c

Log:
Directly access av_log_level instead of calling av_log_{set, get}_level()
(which will be removed at the next avutil version increment)


Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Thu Feb  8 19:55:36 2007
@@ -2084,7 +2084,7 @@
 static void opt_verbose(const char *arg)
 {
     verbose = atoi(arg);
-    av_log_set_level(atoi(arg));
+    av_log_level = atoi(arg);
 }
 
 static void opt_frame_rate(const char *arg)
@@ -3676,7 +3676,7 @@
 #endif
 
     if(avctx_opts->debug)
-        av_log_set_level(AV_LOG_DEBUG);
+        av_log_level = AV_LOG_DEBUG;
     return 0;
 }
 

Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c	(original)
+++ trunk/ffplay.c	Thu Feb  8 19:55:36 2007
@@ -2385,7 +2385,7 @@
 
 static void opt_debug(const char *arg)
 {
-    av_log_set_level(99);
+    av_log_level = 99;
     debug = atoi(arg);
 }
 

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Thu Feb  8 19:55:36 2007
@@ -1102,7 +1102,7 @@
             snprintf(buf + strlen(buf), buf_size - strlen(buf),
                      ", %dx%d",
                      enc->width, enc->height);
-            if(av_log_get_level() >= AV_LOG_DEBUG){
+            if(av_log_level >= AV_LOG_DEBUG){
                 int g= ff_gcd(enc->time_base.num, enc->time_base.den);
                 snprintf(buf + strlen(buf), buf_size - strlen(buf),
                      ", %d/%d",




More information about the ffmpeg-cvslog mailing list