swscale: fix usePal()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Aug 2012 11:37:03 +0000 (13:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Aug 2012 11:37:03 +0000 (13:37 +0200)
Fixes Ticket1702

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/swscale_internal.h

index 7643179..21b37ce 100644 (file)
@@ -691,8 +691,7 @@ const char *sws_format_name(enum PixelFormat format);
      (PIX_FMT_PLANAR | PIX_FMT_RGB)) == (PIX_FMT_PLANAR | PIX_FMT_RGB))
 
 #define usePal(x) ((av_pix_fmt_descriptors[x].flags & PIX_FMT_PAL)       || \
-                   (av_pix_fmt_descriptors[x].flags & PIX_FMT_PSEUDOPAL) || \
-                   (x) == PIX_FMT_Y400A)
+                   (av_pix_fmt_descriptors[x].flags & PIX_FMT_PSEUDOPAL))
 
 extern const uint64_t ff_dither4[2];
 extern const uint64_t ff_dither8[2];