aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rpza.c
diff options
context:
space:
mode:
authorMichel Bardiaux <mbardiaux@peaktime.be>2003-11-03 13:26:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-11-03 13:26:22 +0000
commit9b879566789379631f02b83be367ca55c88a1ae9 (patch)
treeee2b274b74329eb94548dc6c85bc966485c75d2a /libavcodec/rpza.c
parent8bae9ddc91f6a083d420494bbd652d8258649066 (diff)
downloadffmpeg-9b879566789379631f02b83be367ca55c88a1ae9.tar.gz
av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
Originally committed as revision 2469 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rpza.c')
-rw-r--r--libavcodec/rpza.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/rpza.c b/libavcodec/rpza.c
index 675d7f34ca..b8c9188673 100644
--- a/libavcodec/rpza.c
+++ b/libavcodec/rpza.c
@@ -71,7 +71,7 @@ typedef struct RpzaContext {
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 @@ static void rpza_decode_stream(RpzaContext *s)
/* 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 @@ static void rpza_decode_stream(RpzaContext *s)
/* 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 @@ static void rpza_decode_stream(RpzaContext *s)
/* 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 @@ static int rpza_decode_frame(AVCodecContext *avctx,
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;
}