]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Move VDPAU check, make future VDPAU patches smaller.
authorcehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 9 Jan 2009 22:22:40 +0000 (22:22 +0000)
committercehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 9 Jan 2009 22:22:40 +0000 (22:22 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16508 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/error_resilience.c
libavcodec/h264.c

index 55bd716c54a1e768f2d66e13f36d409e6559e4c5..bdd3a663d5ecf34afb7c58bda1286ab716828ca9 100644 (file)
@@ -681,6 +681,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->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){
index 53cb83890ddebe85fd73189ae14124c553110b50..a8bd0622a41662c444e6e023e8172b903b9ac450 100644 (file)
@@ -7647,7 +7647,7 @@ static int decode_frame(AVCodecContext *avctx,
          * past end by one (callers fault) and resync_mb_y != 0
          * causes problems for the first MB line, too.
          */
-        if (avctx->codec_id != CODEC_ID_H264_VDPAU && !FIELD_PICTURE)
+        if (!FIELD_PICTURE)
             ff_er_frame_end(s);
 
         MPV_frame_end(s);