[FFmpeg-cvslog] swscale: fix usePal()

Michael Niedermayer git at videolan.org
Thu Aug 30 13:44:24 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 30 13:37:03 2012 +0200| [f4c020e3ad0a2a1412cc94b3d7df7063b37ae429] | committer: Michael Niedermayer

swscale: fix usePal()

Fixes Ticket1702

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f4c020e3ad0a2a1412cc94b3d7df7063b37ae429
---

 libswscale/swscale_internal.h |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 7643179..21b37ce 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -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];



More information about the ffmpeg-cvslog mailing list