[FFmpeg-cvslog] Replace non-existent HAVE_SSE2 with HAVE_SSE.

Reimar Döffinger git at videolan.org
Thu Jun 2 08:40:13 CEST 2011


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Wed Jun  1 20:52:43 2011 +0200| [2a30df09fd64634ad1b70485cd665ad05116730c] | committer: Reimar Döffinger

Replace non-existent HAVE_SSE2 with HAVE_SSE.

Since this is only a compilation check (the actual function used is
selected at runtime) and HAVE_SSE indicates that we can also compile
SSE2 code, this is correct.

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

 libavfilter/libmpcodecs/vf_gradfun.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavfilter/libmpcodecs/vf_gradfun.c b/libavfilter/libmpcodecs/vf_gradfun.c
index 2732f55..fd4236c 100644
--- a/libavfilter/libmpcodecs/vf_gradfun.c
+++ b/libavfilter/libmpcodecs/vf_gradfun.c
@@ -188,7 +188,7 @@ static void filter_line_ssse3(uint8_t *dst, uint8_t *src, uint16_t *dc,
 }
 #endif // HAVE_SSSE3
 
-#if HAVE_SSE2 && HAVE_6REGS
+#if HAVE_SSE && HAVE_6REGS
 #define BLURV(load)\
     intptr_t x = -2*width;\
     __asm__ volatile(\
@@ -231,7 +231,7 @@ static void blur_line_sse2(uint16_t *dc, uint16_t *buf, uint16_t *buf1,
         BLURV("movdqa");
     }
 }
-#endif // HAVE_6REGS && HAVE_SSE2
+#endif // HAVE_6REGS && HAVE_SSE
 
 static void filter(struct vf_priv_s *ctx, uint8_t *dst, uint8_t *src,
                    int width, int height, int dstride, int sstride, int r)
@@ -385,7 +385,7 @@ static int vf_open(vf_instance_t *vf, char *args)
 
     vf->priv->blur_line = blur_line_c;
     vf->priv->filter_line = filter_line_c;
-#if HAVE_SSE2 && HAVE_6REGS
+#if HAVE_SSE && HAVE_6REGS
     if (gCpuCaps.hasSSE2)
         vf->priv->blur_line = blur_line_sse2;
 #endif



More information about the ffmpeg-cvslog mailing list