[vlc-commits] Avcodec: kill a warning on non-SSE2 compilations

Jean-Baptiste Kempf git at videolan.org
Mon Oct 8 18:05:14 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct  8 18:00:35 2012 +0200| [160df76cee6f5ee5dac01c31c9c107fa2a2cc61c] | committer: Jean-Baptiste Kempf

Avcodec: kill a warning on non-SSE2 compilations

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=160df76cee6f5ee5dac01c31c9c107fa2a2cc61c
---

 modules/codec/avcodec/copy.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/copy.c b/modules/codec/avcodec/copy.c
index 728abfe..b438287 100644
--- a/modules/codec/avcodec/copy.c
+++ b/modules/codec/avcodec/copy.c
@@ -134,9 +134,10 @@ static void Copy2d(uint8_t *dst, size_t dst_pitch,
 
     for (unsigned y = 0; y < height; y++) {
         unsigned x = 0;
-        bool unaligned = ((intptr_t)dst & 0x0f) != 0;
 
 #ifdef CAN_COMPILE_SSE2
+        bool unaligned = ((intptr_t)dst & 0x0f) != 0;
+
         if (vlc_CPU_SSE2()) {
             if (!unaligned) {
                 for (; x+63 < width; x += 64)



More information about the vlc-commits mailing list