diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-08-21 12:41:40 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-10-01 10:24:28 +0200 |
commit | 1218777ffd152287244349d4ff9e1cbc84fa2c54 (patch) | |
tree | e2c8f97065c7ca67151019d6e1dd84a6d3bdd7fe /libavcodec/mpegvideo_enc.c | |
parent | 9c6cf7f2c9d326281e3eefa67673aabaa9d69940 (diff) | |
download | ffmpeg-1218777ffd152287244349d4ff9e1cbc84fa2c54.tar.gz |
avcodec: Convert some commented-out printf/av_log instances to av_dlog
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 31ba122af4..8325ee0f74 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -957,8 +957,8 @@ static int load_input_picture(MpegEncContext *s, AVFrame *pic_arg) if (pic_arg->linesize[2] != s->uvlinesize) direct = 0; - //av_log(AV_LOG_DEBUG, "%d %d %d %d\n",pic_arg->linesize[0], - // pic_arg->linesize[1], s->linesize, s->uvlinesize); + av_dlog(s->avctx, "%d %d %d %d\n", pic_arg->linesize[0], + pic_arg->linesize[1], s->linesize, s->uvlinesize); if (direct) { i = ff_find_unused_picture(s, 1); @@ -2989,7 +2989,8 @@ static int encode_thread(AVCodecContext *c, void *arg){ if(CONFIG_H263_ENCODER && s->out_format == FMT_H263) ff_h263_loop_filter(s); } -//printf("MB %d %d bits\n", s->mb_x+s->mb_y*s->mb_stride, put_bits_count(&s->pb)); + av_dlog(s->avctx, "MB %d %d bits\n", + s->mb_x + s->mb_y * s->mb_stride, put_bits_count(&s->pb)); } } @@ -3184,7 +3185,8 @@ static int encode_picture(MpegEncContext *s, int picture_number) s->pict_type= AV_PICTURE_TYPE_I; for(i=0; i<s->mb_stride*s->mb_height; i++) s->mb_type[i]= CANDIDATE_MB_TYPE_INTRA; -//printf("Scene change detected, encoding as I Frame %d %d\n", s->current_picture.mb_var_sum, s->current_picture.mc_mb_var_sum); + av_dlog(s, "Scene change detected, encoding as I Frame %d %d\n", + s->current_picture.mb_var_sum, s->current_picture.mc_mb_var_sum); } if(!s->umvplus){ |