Mercurial > libavcodec.hg
diff error_resilience.c @ 7831:8195c970d077 libavcodec
Rename error_resilience to error_recognition.
author | michael |
---|---|
date | Mon, 08 Sep 2008 18:18:49 +0000 |
parents | 52925923273f |
children | 926c3a5dcdd3 |
line wrap: on
line diff
--- a/error_resilience.c Mon Sep 08 18:18:29 2008 +0000 +++ b/error_resilience.c Mon Sep 08 18:18:49 2008 +0000 @@ -603,7 +603,7 @@ } void ff_er_frame_start(MpegEncContext *s){ - if(!s->error_resilience) return; + if(!s->error_recognition) return; memset(s->error_status_table, MV_ERROR|AC_ERROR|DC_ERROR|VP_START|AC_END|DC_END|MV_END, s->mb_stride*s->mb_height*sizeof(uint8_t)); s->error_count= 3*s->mb_num; @@ -627,7 +627,7 @@ return; } - if(!s->error_resilience) return; + if(!s->error_recognition) return; mask &= ~VP_START; if(status & (AC_ERROR|AC_END)){ @@ -680,7 +680,7 @@ int size = s->b8_stride * 2 * s->mb_height; Picture *pic= s->current_picture_ptr; - if(!s->error_resilience || s->error_count==0 || + if(!s->error_recognition || s->error_count==0 || s->error_count==3*s->mb_width*(s->avctx->skip_top + s->avctx->skip_bottom)) return; if(s->current_picture.motion_val[0] == NULL){ @@ -756,7 +756,7 @@ } #endif /* handle missing slices */ - if(s->error_resilience>=4){ + if(s->error_recognition>=4){ int end_ok=1; for(i=s->mb_num-2; i>=s->mb_width+100; i--){ //FIXME +100 hack