*/
/**
- * @file error_resilience.c
+ * @file libavcodec/error_resilience.c
* Error resilience / concealment.
*/
if(undamaged_count < 5) return 0; //almost all MBs damaged -> use temporal prediction
-#ifdef HAVE_XVMC
+#if CONFIG_XVMC
//prevent dsp.sad() check, that requires access to the image
if(s->avctx->xvmc_acceleration && s->pict_type==FF_I_TYPE) return 1;
#endif
Picture *pic= s->current_picture_ptr;
if(!s->error_recognition || s->error_count==0 || s->avctx->lowres ||
+ s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU ||
s->error_count==3*s->mb_width*(s->avctx->skip_top + s->avctx->skip_bottom)) return;
if(s->current_picture.motion_val[0] == NULL){
}else
guess_mv(s);
-#ifdef HAVE_XVMC
+#if CONFIG_XVMC
/* the filters below are not XvMC compatible, skip them */
if(s->avctx->xvmc_acceleration) goto ec_clean;
#endif
v_block_filter(s, s->current_picture.data[2], s->mb_width , s->mb_height , s->uvlinesize, 0);
}
-#ifdef HAVE_XVMC
+#if CONFIG_XVMC
ec_clean:
#endif
/* clean a few tables */