Mercurial > libavcodec.hg
diff idcinvideo.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 | 6b224ca24033 |
children | b0ec6f51b5bd |
line wrap: on
line diff
--- a/idcinvideo.c Sun Nov 02 23:19:47 2003 +0000 +++ b/idcinvideo.c Mon Nov 03 13:26:22 2003 +0000 @@ -158,7 +158,7 @@ /* 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 @@ 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 @@ 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; }