diff options
author | Michel Bardiaux <mbardiaux@peaktime.be> | 2003-11-03 16:26:22 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-11-03 16:26:22 +0300 |
commit | 9b879566789379631f02b83be367ca55c88a1ae9 (patch) | |
tree | ee2b274b74329eb94548dc6c85bc966485c75d2a /libavcodec/idcinvideo.c | |
parent | 8bae9ddc91f6a083d420494bbd652d8258649066 (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/idcinvideo.c')
-rw-r--r-- | libavcodec/idcinvideo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/idcinvideo.c b/libavcodec/idcinvideo.c index b3a658296a..e53246bd17 100644 --- a/libavcodec/idcinvideo.c +++ b/libavcodec/idcinvideo.c @@ -158,7 +158,7 @@ static int idcin_decode_init(AVCodecContext *avctx) /* make sure the Huffman tables make it */ if (s->avctx->extradata_size != HUFFMAN_TABLE_SIZE) { - printf(" Id CIN video: expected extradata size of %d\n", HUFFMAN_TABLE_SIZE); + av_log(s->avctx, AV_LOG_ERROR, " Id CIN video: expected extradata size of %d\n", HUFFMAN_TABLE_SIZE); return -1; } @@ -193,7 +193,7 @@ static void idcin_decode_vlcs(IdcinContext *s) while(node_num >= HUF_TOKENS) { if(!bit_pos) { if(dat_pos > s->size) { - printf("Huffman decode error.\n"); + av_log(s->avctx, AV_LOG_ERROR, "Huffman decode error.\n"); return; } bit_pos = 8; @@ -225,7 +225,7 @@ static int idcin_decode_frame(AVCodecContext *avctx, avctx->release_buffer(avctx, &s->frame); if (avctx->get_buffer(avctx, &s->frame)) { - printf (" Id CIN Video: get_buffer() failed\n"); + av_log(avctx, AV_LOG_ERROR, " Id CIN Video: get_buffer() failed\n"); return -1; } |