warning patch by (Dominik Mierzejewski <dominik at rangers dot eu dot org>)
authorDominik Mierzejewski <dominik@rangers.eu.org>
Sat, 23 Nov 2002 10:58:14 +0000 (10:58 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 23 Nov 2002 10:58:14 +0000 (10:58 +0000)
Originally committed as revision 8255 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/postprocess_template.c
postproc/swscale_template.c

index 3289bb18f87c236c2050197dbe671e70cb4e1b15..a75c9b4dc895f35eeb30ad1742b147c6f2f7b2ad 100644 (file)
@@ -2658,7 +2658,10 @@ static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int
        int black=0, white=255; // blackest black and whitest white in the picture
        int QPCorrecture= 256*256;
 
-       int copyAhead, i;
+       int copyAhead;
+#ifdef HAVE_MMX
+       int i;
+#endif
 
        //FIXME remove
        uint64_t * const yHistogram= c.yHistogram;
index 0bc0457717238f2a06f07568fcc2d8c3f783c164..1f64218eaa7b819c6551a0b93c66c1d7c491b580 100644 (file)
@@ -1256,7 +1256,9 @@ YSCALE_YUV_2_ANYRGB_C(YSCALE_YUV_2_RGB2_C, YSCALE_YUV_2_PACKED2_C)
 static inline void RENAME(yuv2packed1)(SwsContext *c, uint16_t *buf0, uint16_t *uvbuf0, uint16_t *uvbuf1,
                            uint8_t *dest, int dstW, int uvalpha, int dstFormat, int flags, int y)
 {
+#ifdef HAVE_MMX
        int uvalpha1=uvalpha^4095;
+#endif
        const int yalpha1=0;
        int i;