From 267f7edcd1f1f31595610b4de29a8c4d3e7929c5 Mon Sep 17 00:00:00 2001 From: Steve L'Homme Date: Wed, 8 Mar 2006 11:43:10 +0000 Subject: (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 --- libavcodec/png.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/png.c') 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]; -- cgit v1.2.3