# HG changeset patch # User diego # Date 1173348169 0 # Node ID 93bb02dad4352ea09c680e366538e76ebf8e2616 # Parent ce47c5e803e2b60251bc58305e24316b6bc291a0 Add PIX_FMT_PAL8 to isPacked(). patch by "Karl H. Beckers", karl.h.beckers gmx net diff -r ce47c5e803e2 -r 93bb02dad435 libswscale/swscale.c --- 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<