[FFmpeg-devel] [PATCH 3/4] escape130: give all av_log() a context

Michael Niedermayer michaelni at gmx.at
Thu Dec 8 13:59:32 CET 2011


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavcodec/escape130.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/escape130.c b/libavcodec/escape130.c
index 03afcbb..b0901e3 100644
--- a/libavcodec/escape130.c
+++ b/libavcodec/escape130.c
@@ -151,7 +151,7 @@ static int escape130_decode_frame(AVCodecContext *avctx,
     old_cb_stride = s->frame.linesize[1];
     old_cr_stride = s->frame.linesize[2];
 
-    av_log(NULL, AV_LOG_DEBUG,
+    av_log(avctx, AV_LOG_DEBUG,
            "Strides: %i, %i\n",
            new_y_stride, new_cb_stride);
 
@@ -296,7 +296,7 @@ static int escape130_decode_frame(AVCodecContext *avctx,
         skip--;
     }
 
-    av_log(NULL, AV_LOG_DEBUG,
+    av_log(avctx, AV_LOG_DEBUG,
            "Escape sizes: %i, %i\n",
            buf_size, get_bits_count(&gb) / 8);
 
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list