changeset 33044:d2b6fbd11f20

Add condition that lets us switch FFmpeg XvMC decoder back from hwaccel to normal decoding.
author reimar
date Sun, 27 Mar 2011 14:17:48 +0000
parents 04203ae3000c
children 776a676d5fde
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }
 }