[Ffmpeg-cvslog] r6689 - trunk/libavcodec/png.c

kostya subversion
Sat Oct 14 14:23:54 CEST 2006


Author: kostya
Date: Sat Oct 14 14:23:54 2006
New Revision: 6689

Modified:
   trunk/libavcodec/png.c

Log:
Make PNG produce correct 8-bit pictures

Modified: trunk/libavcodec/png.c
==============================================================================
--- trunk/libavcodec/png.c	(original)
+++ trunk/libavcodec/png.c	Sat Oct 14 14:23:54 2006
@@ -850,7 +850,7 @@
         for(i = 0; i < 256; i++) {
             v = palette[i];
             alpha = v >> 24;
-            if (alpha != 0xff)
+            if (alpha && alpha != 0xff)
                 has_alpha = 1;
             *alpha_ptr++ = alpha;
             ptr[0] = v >> 16;




More information about the ffmpeg-cvslog mailing list