[Ffmpeg-devel] [PATCH] control x264 log level by av_log_level instead of fixed

Limin Wang lance.lmwang
Mon Mar 26 13:21:46 CEST 2007


Hi,

To avoid x264 log output once I set av_log_level to zero.


Thanks,
Limin
-------------- next part --------------
Index: libavcodec/x264.c
===================================================================
--- libavcodec/x264.c	(revision 8526)
+++ libavcodec/x264.c	(working copy)
@@ -254,7 +254,7 @@
     x4->params.rc.psz_rc_eq = avctx->rc_eq;
 
     x4->params.analyse.b_psnr = (avctx->flags & CODEC_FLAG_PSNR);
-    x4->params.i_log_level = X264_LOG_DEBUG;
+    x4->params.i_log_level = av_log_level;
 
     x4->params.b_aud = (avctx->flags2 & CODEC_FLAG2_AUD);
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070326/7116f73a/attachment.pgp>



More information about the ffmpeg-devel mailing list