[MPlayer-cvslog] r33131 - trunk/libmpcodecs/vd_ffmpeg.c

reimar subversion at mplayerhq.hu
Sun Mar 27 16:17:48 CEST 2011


Author: reimar
Date: Sun Mar 27 16:17:48 2011
New Revision: 33131

Log:
Add condition that lets us switch FFmpeg XvMC decoder back from
hwaccel to normal decoding.

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Sun Mar 27 16:02:32 2011	(r33130)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Sun Mar 27 16:17:48 2011	(r33131)
@@ -250,6 +250,8 @@ static void set_format_params(struct AVC
         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);
     }
 }
 


More information about the MPlayer-cvslog mailing list