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

iive subversion at mplayerhq.hu
Sat Oct 28 22:43:06 EEST 2017


Author: iive
Date: Sat Oct 28 22:43:05 2017
New Revision: 37999

Log:
Fix compilation with XvMC after FFmpeg version bump.

Use AV_PIX_FMT_XVMC. It has existed for few years, but
the old deprecated PIX_FMT has been left out for compatibility
and forgotten.

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Sun Oct 22 20:53:38 2017	(r37998)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Sat Oct 28 22:43:05 2017	(r37999)
@@ -194,7 +194,7 @@ static int control(sh_video_t *sh, int c
 #if CONFIG_XVMC
         case IMGFMT_XVMC_IDCT_MPEG2:
         case IMGFMT_XVMC_MOCO_MPEG2:
-            if(avctx->pix_fmt == AV_PIX_FMT_XVMC_MPEG2_IDCT) return CONTROL_TRUE;
+            if(avctx->pix_fmt == AV_PIX_FMT_XVMC) return CONTROL_TRUE;
 #endif
         }
         return CONTROL_FALSE;


More information about the MPlayer-cvslog mailing list