diff error_resilience.c @ 8557:24c5744c3e96 libavcodec

Move VDPAU check, make future VDPAU patches smaller.
author cehoyos
date Fri, 09 Jan 2009 22:22:40 +0000
parents e76576f38ade
children 7a463923ecd1
line wrap: on
line diff
--- a/error_resilience.c	Fri Jan 09 16:51:21 2009 +0000
+++ b/error_resilience.c	Fri Jan 09 22:22:40 2009 +0000
@@ -681,6 +681,7 @@
     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){