Remove workaround for rgb/bgr mess.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Sep 2008 20:16:41 +0000 (20:16 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Sep 2008 20:16:41 +0000 (20:16 +0000)
Originally committed as revision 27520 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale_internal.h

index a20b26e..a14e85c 100644 (file)
@@ -221,7 +221,7 @@ const char *sws_format_name(int format);
         || (x)==PIX_FMT_GRAY16LE    \
     )
 #define isRGB(x)        (           \
-           (x)==PIX_FMT_BGR32       \
+           (x)==PIX_FMT_RGB32       \
         || (x)==PIX_FMT_RGB24       \
         || (x)==PIX_FMT_RGB565      \
         || (x)==PIX_FMT_RGB555      \
@@ -231,7 +231,7 @@ const char *sws_format_name(int format);
         || (x)==PIX_FMT_MONOBLACK   \
     )
 #define isBGR(x)        (           \
-           (x)==PIX_FMT_RGB32       \
+           (x)==PIX_FMT_BGR32       \
         || (x)==PIX_FMT_BGR24       \
         || (x)==PIX_FMT_BGR565      \
         || (x)==PIX_FMT_BGR555      \