comparison error_resilience.c @ 7940:8dc81763fb42 libavcodec

Do not attempt to perform error concealment in lowres mode as this is not supported currently.
author michael
date Tue, 30 Sep 2008 00:28:13 +0000
parents 926c3a5dcdd3
children e76576f38ade
comparison
equal deleted inserted replaced
7939:cd8602533b62 7940:8dc81763fb42
678 int threshold= 50; 678 int threshold= 50;
679 int is_intra_likely; 679 int is_intra_likely;
680 int size = s->b8_stride * 2 * s->mb_height; 680 int size = s->b8_stride * 2 * s->mb_height;
681 Picture *pic= s->current_picture_ptr; 681 Picture *pic= s->current_picture_ptr;
682 682
683 if(!s->error_recognition || s->error_count==0 || 683 if(!s->error_recognition || s->error_count==0 || s->avctx->lowres ||
684 s->error_count==3*s->mb_width*(s->avctx->skip_top + s->avctx->skip_bottom)) return; 684 s->error_count==3*s->mb_width*(s->avctx->skip_top + s->avctx->skip_bottom)) return;
685 685
686 if(s->current_picture.motion_val[0] == NULL){ 686 if(s->current_picture.motion_val[0] == NULL){
687 av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n"); 687 av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n");
688 688