Mercurial > libavcodec.hg
diff error_resilience.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 | 89dacc2b9bf0 |
children | 30746f429df6 |
line wrap: on
line diff
--- a/error_resilience.c Sun Nov 02 23:19:47 2003 +0000 +++ b/error_resilience.c Mon Nov 03 13:26:22 2003 +0000 @@ -669,12 +669,12 @@ if(!s->error_resilience || s->error_count==0) return; - fprintf(stderr, "concealing errors\n"); + av_log(s->avctx, AV_LOG_INFO, "concealing errors\n"); if(s->motion_val == NULL){ int size = (2 * s->mb_width + 2) * (2 * s->mb_height + 2); - fprintf(stderr, "Warning MVs not available\n"); + av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n"); s->motion_val= av_mallocz(size * 2 * sizeof(int16_t)); } @@ -684,9 +684,9 @@ for(mb_x=0; mb_x<s->mb_width; mb_x++){ int status= s->error_status_table[mb_x + mb_y*s->mb_stride]; - printf("%2X ", status); + av_log(s->avctx, AV_LOG_DEBUG, "%2X ", status); } - printf("\n"); + av_log(s->avctx, AV_LOG_DEBUG, "\n"); } }