diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 41ad43c158..409661eceb 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -947,11 +947,10 @@ void MPV_frame_end(MpegEncContext *s) { int i; /* draw edge for correct motion prediction if outside */ -//just to make sure that all data is rendered. + //just to make sure that all data is rendered. if(CONFIG_MPEG_XVMC_DECODER && s->avctx->xvmc_acceleration){ ff_xvmc_field_end(s); - }else - if(!(s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU) + }else if(!(s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU) && s->unrestricted_mv && s->current_picture.reference && !s->intra_only