More approved hunks for VAAPI & our new and cleaner hwaccel API.
[libav.git] / libavcodec / error_resilience.c
index a196326..c21bc70 100644 (file)
@@ -680,6 +680,7 @@ void ff_er_frame_end(MpegEncContext *s){
     Picture *pic= s->current_picture_ptr;
 
     if(!s->error_recognition || s->error_count==0 || s->avctx->lowres ||
+       s->avctx->hwaccel ||
        s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU ||
        s->error_count==3*s->mb_width*(s->avctx->skip_top + s->avctx->skip_bottom)) return;