changeset 22469:93bb02dad435

Add PIX_FMT_PAL8 to isPacked(). patch by "Karl H. Beckers", karl.h.beckers gmx net
author diego
date Thu, 08 Mar 2007 10:02:49 +0000
parents ce47c5e803e2
children ae4e7d11e66f
files libswscale/swscale.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Thu Mar 08 09:42:14 2007 +0000
+++ b/libswscale/swscale.c	Thu Mar 08 10:02:49 2007 +0000
@@ -116,7 +116,8 @@
 			|| (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))