summaryrefslogtreecommitdiff
path: root/libavcodec/xan.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/xan.c
parent8bae9ddc91f6a083d420494bbd652d8258649066 (diff)
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/xan.c')
-rw-r--r--libavcodec/xan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/xan.c b/libavcodec/xan.c
index 49e207677f..4dad2e2141 100644
--- a/libavcodec/xan.c
+++ b/libavcodec/xan.c
@@ -116,7 +116,7 @@ static int xan_decode_init(AVCodecContext *avctx)
if ((avctx->codec->id == CODEC_ID_XAN_WC3) &&
(s->avctx->palctrl == NULL)) {
- printf (" WC3 Xan video: palette expected.\n");
+ av_log(avctx, AV_LOG_ERROR, " WC3 Xan video: palette expected.\n");
return -1;
}
@@ -336,7 +336,7 @@ static void inline xan_wc3_build_palette(XanContext *s,
break;
default:
- printf (" Xan WC3: Unhandled colorspace\n");
+ av_log(s->avctx, AV_LOG_ERROR, " Xan WC3: Unhandled colorspace\n");
break;
}
}
@@ -457,7 +457,7 @@ static void inline xan_wc3_output_pixel_run(XanContext *s,
break;
default:
- printf (" Xan WC3: Unhandled colorspace\n");
+ av_log(s->avctx, AV_LOG_ERROR, " Xan WC3: Unhandled colorspace\n");
break;
}
}
@@ -600,7 +600,7 @@ static void inline xan_wc3_copy_pixel_run(XanContext *s,
break;
default:
- printf (" Xan WC3: Unhandled colorspace\n");
+ av_log(s->avctx, AV_LOG_ERROR, " Xan WC3: Unhandled colorspace\n");
break;
}
}
@@ -761,7 +761,7 @@ static int xan_decode_frame(AVCodecContext *avctx,
}
if (avctx->get_buffer(avctx, &s->current_frame)) {
- printf (" Xan Video: get_buffer() failed\n");
+ av_log(s->avctx, AV_LOG_ERROR, " Xan Video: get_buffer() failed\n");
return -1;
}
s->current_frame.reference = 3;