Mercurial > libavcodec.hg
diff huffyuv.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 | cb523a2ca00f |
children | d49aae2f9027 |
line wrap: on
line diff
--- a/huffyuv.c Sun Nov 02 23:19:47 2003 +0000 +++ b/huffyuv.c Mon Nov 03 13:26:22 2003 +0000 @@ -219,7 +219,7 @@ dst[index]= bits++; } if(bits & 1){ - fprintf(stderr, "Error generating huffman table\n"); + av_log(NULL, AV_LOG_ERROR, "Error generating huffman table\n"); return -1; } bits >>= 1; @@ -480,7 +480,7 @@ switch(avctx->pix_fmt){ case PIX_FMT_YUV420P: if(avctx->strict_std_compliance>=0){ - fprintf(stderr, "YV12-huffyuv is experimental, there WILL be no compatbility! (use (v)strict=-1)\n"); + av_log(avctx, AV_LOG_ERROR, "YV12-huffyuv is experimental, there WILL be no compatbility! (use (v)strict=-1)\n"); return -1; } s->bitstream_bpp= 12; @@ -489,7 +489,7 @@ s->bitstream_bpp= 16; break; default: - fprintf(stderr, "format not supported\n"); + av_log(avctx, AV_LOG_ERROR, "format not supported\n"); return -1; } avctx->bits_per_sample= s->bitstream_bpp; @@ -703,7 +703,7 @@ 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; } @@ -724,7 +724,7 @@ p->data[0][1]= get_bits(&s->gb, 8); p->data[0][0]= get_bits(&s->gb, 8); - fprintf(stderr, "YUY2 output isnt implemenetd yet\n"); + av_log(avctx, AV_LOG_ERROR, "YUY2 output isnt implemenetd yet\n"); return -1; }else{ @@ -896,11 +896,11 @@ draw_slice(s, height); // just 1 large slice as this isnt possible in reverse order break; default: - fprintf(stderr, "prediction type not supported!\n"); + av_log(avctx, AV_LOG_ERROR, "prediction type not supported!\n"); } }else{ - fprintf(stderr, "BGR24 output isnt implemenetd yet\n"); + av_log(avctx, AV_LOG_ERROR, "BGR24 output isnt implemenetd yet\n"); return -1; } } @@ -1049,7 +1049,7 @@ } } }else{ - fprintf(stderr, "Format not supported!\n"); + av_log(avctx, AV_LOG_ERROR, "Format not supported!\n"); } emms_c();