aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-03-25 02:37:37 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-03-25 02:51:20 +0100
commit5d6c5dd36c024784a9cd36391c3698c2f1f2d2ab (patch)
tree38a5e809995dab9ee4232c3cb38063d6539b19a7 /libavcodec/mpegvideo.c
parent3eb9e571dc8ddfc9d1ae99c2ee75f607181819c7 (diff)
downloadffmpeg-5d6c5dd36c024784a9cd36391c3698c2f1f2d2ab.tar.gz
Merge remote-tracking branch 'ffmpeg-mt/master'
* ffmpeg-mt/master: Update todo. Draw edges in MPV_frame_end when encoding Conflicts: libavcodec/mpegvideo.c Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 16f3985291..aa5378b542 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1156,7 +1156,8 @@ void MPV_frame_end(MpegEncContext *s)
//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->hwaccel
+ }else if((s->error_count || s->encoding)
+ && !s->avctx->hwaccel
&& !(s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)
&& s->unrestricted_mv
&& s->current_picture.reference