# HG changeset patch # User reimar # Date 1301235468 0 # Node ID d2b6fbd11f20daf4223644a65fcaa7406be63bd2 # Parent 04203ae3000c0146e76b6d4b5712fd65a66d4044 Add condition that lets us switch FFmpeg XvMC decoder back from hwaccel to normal decoding. diff -r 04203ae3000c -r d2b6fbd11f20 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Sun Mar 27 14:02:32 2011 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sun Mar 27 14:17:48 2011 +0000 @@ -250,6 +250,8 @@ avctx->draw_horiz_band = draw_slice; mp_msg(MSGT_DECVIDEO, MSGL_INFO, MSGTR_MPCODECS_XVMCAcceleratedMPEG2); avctx->slice_flags = SLICE_FLAG_CODED_ORDER|SLICE_FLAG_ALLOW_FIELD; + } else { + avctx->slice_flags &= ~(SLICE_FLAG_CODED_ORDER|SLICE_FLAG_ALLOW_FIELD); } }