Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
1597:4c9165372ab3 | 1598:932d306bf1dc |
---|---|
667 int threshold= 50; | 667 int threshold= 50; |
668 int is_intra_likely; | 668 int is_intra_likely; |
669 | 669 |
670 if(!s->error_resilience || s->error_count==0) return; | 670 if(!s->error_resilience || s->error_count==0) return; |
671 | 671 |
672 fprintf(stderr, "concealing errors\n"); | 672 av_log(s->avctx, AV_LOG_INFO, "concealing errors\n"); |
673 | 673 |
674 if(s->motion_val == NULL){ | 674 if(s->motion_val == NULL){ |
675 int size = (2 * s->mb_width + 2) * (2 * s->mb_height + 2); | 675 int size = (2 * s->mb_width + 2) * (2 * s->mb_height + 2); |
676 | 676 |
677 fprintf(stderr, "Warning MVs not available\n"); | 677 av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n"); |
678 | 678 |
679 s->motion_val= av_mallocz(size * 2 * sizeof(int16_t)); | 679 s->motion_val= av_mallocz(size * 2 * sizeof(int16_t)); |
680 } | 680 } |
681 | 681 |
682 if(s->avctx->debug&FF_DEBUG_ER){ | 682 if(s->avctx->debug&FF_DEBUG_ER){ |
683 for(mb_y=0; mb_y<s->mb_height; mb_y++){ | 683 for(mb_y=0; mb_y<s->mb_height; mb_y++){ |
684 for(mb_x=0; mb_x<s->mb_width; mb_x++){ | 684 for(mb_x=0; mb_x<s->mb_width; mb_x++){ |
685 int status= s->error_status_table[mb_x + mb_y*s->mb_stride]; | 685 int status= s->error_status_table[mb_x + mb_y*s->mb_stride]; |
686 | 686 |
687 printf("%2X ", status); | 687 av_log(s->avctx, AV_LOG_DEBUG, "%2X ", status); |
688 } | 688 } |
689 printf("\n"); | 689 av_log(s->avctx, AV_LOG_DEBUG, "\n"); |
690 } | 690 } |
691 } | 691 } |
692 | 692 |
693 #if 1 | 693 #if 1 |
694 /* handle overlapping slices */ | 694 /* handle overlapping slices */ |