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/mjpegdec.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/mjpegdec.c')
-rw-r--r-- | libavcodec/mjpegdec.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 7217f4f196..1bcbcfd1d4 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -365,9 +365,9 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) for (i = 0; i < 3; i++) s->linesize[i] = s->picture_ptr->linesize[i] << s->interlaced; -// printf("%d %d %d %d %d %d\n", -// s->width, s->height, s->linesize[0], s->linesize[1], -// s->interlaced, s->avctx->height); + av_dlog(s->avctx, "%d %d %d %d %d %d\n", + s->width, s->height, s->linesize[0], s->linesize[1], + s->interlaced, s->avctx->height); if (len != (8 + (3 * nb_components))) av_log(s->avctx, AV_LOG_DEBUG, "decode_sof0: error, len(%d) mismatch\n", len); @@ -892,11 +892,10 @@ static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah, return AVERROR_INVALIDDATA; } } - // av_log(s->avctx, AV_LOG_DEBUG, "mb: %d %d processed\n", - // mb_y, mb_x); - // av_log(NULL, AV_LOG_DEBUG, "%d %d %d %d %d %d %d %d \n", - // mb_x, mb_y, x, y, c, s->bottom_field, - // (v * mb_y + y) * 8, (h * mb_x + x) * 8); + av_dlog(s->avctx, "mb: %d %d processed\n", mb_y, mb_x); + av_dlog(s->avctx, "%d %d %d %d %d %d %d %d \n", + mb_x, mb_y, x, y, c, s->bottom_field, + (v * mb_y + y) * 8, (h * mb_x + x) * 8); if (++x == h) { x = 0; y++; |