diff options
author | Michel Bardiaux <mbardiaux@peaktime.be> | 2003-11-03 13:26:22 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-11-03 13:26:22 +0000 |
commit | 9b879566789379631f02b83be367ca55c88a1ae9 (patch) | |
tree | ee2b274b74329eb94548dc6c85bc966485c75d2a /libavcodec/asv1.c | |
parent | 8bae9ddc91f6a083d420494bbd652d8258649066 (diff) | |
download | ffmpeg-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/asv1.c')
-rw-r--r-- | libavcodec/asv1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c index 2e6f785fb0..b84b02475e 100644 --- a/libavcodec/asv1.c +++ b/libavcodec/asv1.c @@ -207,7 +207,7 @@ static inline int asv1_decode_block(ASV1Context *a, DCTELEM block[64]){ if(ccp){ if(ccp == 16) break; if(ccp < 0 || i>=10){ - printf("coded coeff pattern damaged\n"); + av_log(a->avctx, AV_LOG_ERROR, "coded coeff pattern damaged\n"); return -1; } @@ -415,7 +415,7 @@ static int decode_frame(AVCodecContext *avctx, p->reference= 0; if(avctx->get_buffer(avctx, p) < 0){ - fprintf(stderr, "get_buffer() failed\n"); + av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); return -1; } p->pict_type= I_TYPE; @@ -561,7 +561,7 @@ static int decode_init(AVCodecContext *avctx){ a->inv_qscale= ((uint8_t*)avctx->extradata)[0]; if(a->inv_qscale == 0){ - printf("illegal qscale 0\n"); + av_log(avctx, AV_LOG_ERROR, "illegal qscale 0\n"); if(avctx->codec_id == CODEC_ID_ASV1) a->inv_qscale= 6; else |