summaryrefslogtreecommitdiff
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorKarl H. Beckers <karl.h.beckers@gmx.net>2007-03-08 10:02:49 +0000
committerDiego Biurrun <diego@biurrun.de>2007-03-08 10:02:49 +0000
commit6cbac7ed3ab92dfd2b2264234eaf9686db64e95d (patch)
tree4c7f27228db8d218693ff7d74eb4543fc655a08e /libswscale/swscale.c
parent7f0f6e13a750fa8cb2b7d190bfe24bd46f30f54c (diff)
Add PIX_FMT_PAL8 to isPacked().
patch by "Karl H. Beckers", karl.h.beckers gmx net Originally committed as revision 22487 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 2baef4a318..f034c54071 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -116,7 +116,8 @@ untested special converters
|| (x)==PIX_FMT_NV12 || (x)==PIX_FMT_NV21\
|| (x)==PIX_FMT_GRAY16BE || (x)==PIX_FMT_GRAY16LE\
|| (x)==PIX_FMT_GRAY8 || (x)==PIX_FMT_YUV410P)
-#define isPacked(x) ((x)==PIX_FMT_YUYV422 || (x)==PIX_FMT_UYVY422 ||isRGB(x) || isBGR(x))
+#define isPacked(x) ((x)==PIX_FMT_PAL8 || (x)==PIX_FMT_YUYV422 ||\
+ (x)==PIX_FMT_UYVY422 || isRGB(x) || isBGR(x))
#define RGB2YUV_SHIFT 16
#define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5))