diff h264.c @ 12083:dd5efc28bca9 libavcodec

Give context to av_log
author bcoudurier
date Sat, 03 Jul 2010 04:40:12 +0000
parents fd2c3b786dcf
children f7bedc1ce1bc
line wrap: on
line diff
--- a/h264.c	Sat Jul 03 00:48:12 2010 +0000
+++ b/h264.c	Sat Jul 03 04:40:12 2010 +0000
@@ -1902,7 +1902,7 @@
     if(h0->current_slice == 0){
         while(h->frame_num !=  h->prev_frame_num &&
               h->frame_num != (h->prev_frame_num+1)%(1<<h->sps.log2_max_frame_num)){
-            av_log(NULL, AV_LOG_DEBUG, "Frame num gap %d %d\n", h->frame_num, h->prev_frame_num);
+            av_log(h->s.avctx, AV_LOG_DEBUG, "Frame num gap %d %d\n", h->frame_num, h->prev_frame_num);
             if (ff_h264_frame_start(h) < 0)
                 return -1;
             h->prev_frame_num++;