Avoid redefinition of RGB_PLANAR2PACKED24 as the template is included for
authorZuxy Meng <zuxy.meng@gmail.com>
Mon, 11 Jan 2010 08:21:31 +0000 (08:21 +0000)
committerZuxy Meng <zuxy.meng@gmail.com>
Mon, 11 Jan 2010 08:21:31 +0000 (08:21 +0000)
multiple times.

Originally committed as revision 30273 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/x86/yuv2rgb_template.c

index b000dd2..b6a1c3d 100644 (file)
@@ -295,6 +295,7 @@ static inline int RENAME(yuv420_rgb15)(SwsContext *c, uint8_t* src[], int srcStr
     YUV2RGB_OPERANDS
 }
 
+#undef RGB_PLANAR2PACKED24
 #if HAVE_MMX2
 #define RGB_PLANAR2PACKED24(red, blue)\
         "movq "MANGLE(ff_M24A)", %%mm4     \n\t"\