Mercurial > libavcodec.hg
diff rpza.c @ 1598:932d306bf1dc libavcodec
av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
author | michael |
---|---|
date | Mon, 03 Nov 2003 13:26:22 +0000 |
parents | df7ab60d1ee0 |
children | 9ef0d51e809b |
line wrap: on
line diff
--- a/rpza.c Sun Nov 02 23:19:47 2003 +0000 +++ b/rpza.c Mon Nov 03 13:26:22 2003 +0000 @@ -71,7 +71,7 @@ total_blocks--; \ if (total_blocks < 0) \ { \ - printf("warning: block counter just went negative (this should not happen)\n"); \ + av_log(s->avctx, AV_LOG_ERROR, "warning: block counter just went negative (this should not happen)\n"); \ return; \ } \ } @@ -100,7 +100,7 @@ /* First byte is always 0xe1. Warn if it's different */ if (s->buf[stream_ptr] != 0xe1) - printf("First chunk byte is 0x%02x instead of 0x1e\n", + av_log(s->avctx, AV_LOG_ERROR, "First chunk byte is 0x%02x instead of 0x1e\n", s->buf[stream_ptr]); /* Get chunk size, ingnoring first byte */ @@ -109,7 +109,7 @@ /* If length mismatch use size from MOV file and try to decode anyway */ if (chunk_size != s->size) - printf("MOV chunk size != encoded chunk size; using MOV chunk size\n"); + av_log(s->avctx, AV_LOG_ERROR, "MOV chunk size != encoded chunk size; using MOV chunk size\n"); chunk_size = s->size; @@ -236,7 +236,7 @@ /* Unknown opcode */ default: - printf("Unknown opcode %d in rpza chunk." + av_log(s->avctx, AV_LOG_ERROR, "Unknown opcode %d in rpza chunk." " Skip remaining %d bytes of chunk data.\n", opcode, chunk_size - stream_ptr); return; @@ -269,7 +269,7 @@ s->frame.reference = 1; if (avctx->get_buffer(avctx, &s->frame)) { - printf (" RPZA Video: get_buffer() failed\n"); + av_log(avctx, AV_LOG_ERROR, " RPZA Video: get_buffer() failed\n"); return -1; }