Mercurial > libavcodec.hg
diff error_resilience.c @ 6481:493dc59d469a libavcodec
add FF_ prefix to all (frame)_TYPE usage
author | aurel |
---|---|
date | Sun, 09 Mar 2008 23:31:02 +0000 |
parents | 8e63d869a904 |
children | 01647ac078a7 |
line wrap: on
line diff
--- a/error_resilience.c Sun Mar 09 17:05:19 2008 +0000 +++ b/error_resilience.c Sun Mar 09 23:31:02 2008 +0000 @@ -565,7 +565,7 @@ #ifdef HAVE_XVMC //prevent dsp.sad() check, that requires access to the image - if(s->avctx->xvmc_acceleration && s->pict_type==I_TYPE) return 1; + if(s->avctx->xvmc_acceleration && s->pict_type==FF_I_TYPE) return 1; #endif skip_amount= FFMAX(undamaged_count/50, 1); //check only upto 50 MBs @@ -584,7 +584,7 @@ j++; if((j%skip_amount) != 0) continue; //skip a few to speed things up - if(s->pict_type==I_TYPE){ + if(s->pict_type==FF_I_TYPE){ uint8_t *mb_ptr = s->current_picture.data[0] + mb_x*16 + mb_y*16*s->linesize; uint8_t *last_mb_ptr= s->last_picture.data [0] + mb_x*16 + mb_y*16*s->linesize; @@ -893,7 +893,7 @@ } /* guess MVs */ - if(s->pict_type==B_TYPE){ + if(s->pict_type==FF_B_TYPE){ for(mb_y=0; mb_y<s->mb_height; mb_y++){ for(mb_x=0; mb_x<s->mb_width; mb_x++){ int xy= mb_x*2 + mb_y*2*s->b8_stride; @@ -1031,7 +1031,7 @@ const int mb_xy= s->mb_index2xy[i]; int error= s->error_status_table[mb_xy]; - if(s->pict_type!=B_TYPE && (error&(DC_ERROR|MV_ERROR|AC_ERROR))){ + if(s->pict_type!=FF_B_TYPE && (error&(DC_ERROR|MV_ERROR|AC_ERROR))){ s->mbskip_table[mb_xy]=0; } s->mbintra_table[mb_xy]=1;