Fix vf_eq.c and vf_eq2.c compilation with !HAVE_6REGS.
[ffmpeg.git] / libavfilter / libmpcodecs / vf_eq.c
index c926c51..f8efa84 100644 (file)
@@ -37,7 +37,7 @@ struct vf_priv_s {
         int contrast;
 };
 
-#if HAVE_MMX
+#if HAVE_MMX && HAVE_6REGS
 static void process_MMX(unsigned char *dest, int dstride, unsigned char *src, int sstride,
                     int w, int h, int brightness, int contrast)
 {
@@ -224,7 +224,7 @@ static int vf_open(vf_instance_t *vf, char *args)
     if (args) sscanf(args, "%d:%d", &vf->priv->brightness, &vf->priv->contrast);
 
         process = process_C;
-#if HAVE_MMX
+#if HAVE_MMX && HAVE_6REGS
         if(ff_gCpuCaps.hasMMX) process = process_MMX;
 #endif