[FFmpeg-cvslog] cook: use av_dlog() for debug logging instead of av_log() with AV_LOG_ERROR

Justin Ruggles git at videolan.org
Fri Nov 2 13:49:13 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sun Oct 21 14:47:10 2012 -0400| [93e27f86f161ca5ed811be3570289a4f972862dc] | committer: Justin Ruggles

cook: use av_dlog() for debug logging instead of av_log() with AV_LOG_ERROR

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=93e27f86f161ca5ed811be3570289a4f972862dc
---

 libavcodec/cook.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index ed8eaf3..201b44c 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -1012,14 +1012,14 @@ static int cook_decode_frame(AVCodecContext *avctx, void *data,
 static void dump_cook_context(COOKContext *q)
 {
     //int i=0;
-#define PRINT(a, b) av_log(q->avctx, AV_LOG_ERROR, " %s = %d\n", a, b);
-    av_log(q->avctx, AV_LOG_ERROR, "COOKextradata\n");
-    av_log(q->avctx, AV_LOG_ERROR, "cookversion=%x\n", q->subpacket[0].cookversion);
+#define PRINT(a, b) av_dlog(q->avctx, " %s = %d\n", a, b);
+    av_dlog(q->avctx, "COOKextradata\n");
+    av_dlog(q->avctx, "cookversion=%x\n", q->subpacket[0].cookversion);
     if (q->subpacket[0].cookversion > STEREO) {
         PRINT("js_subband_start", q->subpacket[0].js_subband_start);
         PRINT("js_vlc_bits", q->subpacket[0].js_vlc_bits);
     }
-    av_log(q->avctx, AV_LOG_ERROR, "COOKContext\n");
+    av_dlog(q->avctx, "COOKContext\n");
     PRINT("nb_channels", q->avctx->channels);
     PRINT("bit_rate", q->avctx->bit_rate);
     PRINT("sample_rate", q->avctx->sample_rate);



More information about the ffmpeg-cvslog mailing list