[FFmpeg-cvslog] Fix vf_eq.c and vf_eq2.c compilation with !HAVE_6REGS.

Carl Eugen Hoyos git at videolan.org
Fri Apr 25 02:12:51 CEST 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Apr 24 17:50:27 2014 +0200| [9cc4bc973c206ff89c923e6514ae6006d7b7c8fb] | committer: Carl Eugen Hoyos

Fix vf_eq.c and vf_eq2.c compilation with !HAVE_6REGS.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9cc4bc973c206ff89c923e6514ae6006d7b7c8fb
---

 libavfilter/libmpcodecs/vf_eq.c  |    4 ++--
 libavfilter/libmpcodecs/vf_eq2.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavfilter/libmpcodecs/vf_eq.c b/libavfilter/libmpcodecs/vf_eq.c
index c926c51..f8efa84 100644
--- a/libavfilter/libmpcodecs/vf_eq.c
+++ b/libavfilter/libmpcodecs/vf_eq.c
@@ -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
 
diff --git a/libavfilter/libmpcodecs/vf_eq2.c b/libavfilter/libmpcodecs/vf_eq2.c
index 7a3ef31..c9c3ff6 100644
--- a/libavfilter/libmpcodecs/vf_eq2.c
+++ b/libavfilter/libmpcodecs/vf_eq2.c
@@ -120,7 +120,7 @@ void create_lut (eq2_param_t *par)
   par->lut_clean = 1;
 }
 
-#if HAVE_MMX
+#if HAVE_MMX && HAVE_6REGS
 static
 void affine_1d_MMX (eq2_param_t *par, unsigned char *dst, unsigned char *src,
   unsigned w, unsigned h, unsigned dstride, unsigned sstride)
@@ -289,7 +289,7 @@ void check_values (eq2_param_t *par)
   if ((par->c == 1.0) && (par->b == 0.0) && (par->g == 1.0)) {
     par->adjust = NULL;
   }
-#if HAVE_MMX
+#if HAVE_MMX && HAVE_6REGS
   else if (par->g == 1.0 && ff_gCpuCaps.hasMMX) {
     par->adjust = &affine_1d_MMX;
   }



More information about the ffmpeg-cvslog mailing list