summaryrefslogtreecommitdiff
path: root/libavcodec/png.c
diff options
context:
space:
mode:
authorSteve L'Homme <slhomme@divxcorp.com>2006-03-08 11:43:10 +0000
committerDiego Biurrun <diego@biurrun.de>2006-03-08 11:43:10 +0000
commit267f7edcd1f1f31595610b4de29a8c4d3e7929c5 (patch)
treed1edfb074219890a54453b0070072867988054cc /libavcodec/png.c
parent6f3dda9328568b38e81580d6cdf6f4ffdbbe07df (diff)
downloadffmpeg-267f7edcd1f1f31595610b4de29a8c4d3e7929c5.tar.gz
(f)printf --> av_log conversion
taken from a patch by Steve L'Homme Originally committed as revision 5127 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/png.c')
-rw-r--r--libavcodec/png.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/png.c b/libavcodec/png.c
index 0491f5931c..c96638c2d8 100644
--- a/libavcodec/png.c
+++ b/libavcodec/png.c
@@ -507,7 +507,7 @@ static int decode_frame(AVCodecContext *avctx,
tag32 = get32(&s->bytestream);
tag = bswap_32(tag32);
#ifdef DEBUG
- printf("png: tag=%c%c%c%c length=%u\n",
+ av_log(avctx, AV_LOG_DEBUG, "png: tag=%c%c%c%c length=%u\n",
(tag & 0xff),
((tag >> 8) & 0xff),
((tag >> 16) & 0xff),
@@ -531,7 +531,7 @@ static int decode_frame(AVCodecContext *avctx,
crc = get32(&s->bytestream);
s->state |= PNG_IHDR;
#ifdef DEBUG
- printf("width=%d height=%d depth=%d color_type=%d compression_type=%d filter_type=%d interlace_type=%d\n",
+ av_log(avctx, AV_LOG_DEBUG, "width=%d height=%d depth=%d color_type=%d compression_type=%d filter_type=%d interlace_type=%d\n",
s->width, s->height, s->bit_depth, s->color_type,
s->compression_type, s->filter_type, s->interlace_type);
#endif
@@ -589,7 +589,7 @@ static int decode_frame(AVCodecContext *avctx,
s->crow_size = s->pass_row_size + 1;
}
#ifdef DEBUG
- printf("row_size=%d crow_size =%d\n",
+ av_log(avctx, AV_LOG_DEBUG, "row_size=%d crow_size =%d\n",
s->row_size, s->crow_size);
#endif
s->image_buf = p->data[0];