Give context to av_log
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 3 Jul 2010 04:40:12 +0000 (04:40 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sat, 3 Jul 2010 04:40:12 +0000 (04:40 +0000)
Originally committed as revision 24018 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index 105428697554e7c5b8e95cd18fb5d7fafd859384..e7ffe45d0f09fcea418d2a4a28b24dfa7ed848f9 100644 (file)
@@ -1902,7 +1902,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
     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++;