[xiph-commits] r14239 - trunk/theora/examples

giles at svn.xiph.org giles at svn.xiph.org
Tue Nov 27 11:11:53 PST 2007


Author: giles
Date: 2007-11-27 11:11:53 -0800 (Tue, 27 Nov 2007)
New Revision: 14239

Modified:
   trunk/theora/examples/png2theora.c
Log:
Add additional helpful flags to the png decoder.


Modified: trunk/theora/examples/png2theora.c
===================================================================
--- trunk/theora/examples/png2theora.c	2007-11-27 18:27:40 UTC (rev 14238)
+++ trunk/theora/examples/png2theora.c	2007-11-27 19:11:53 UTC (rev 14239)
@@ -375,7 +375,8 @@
   png_init_io(png_ptr, fp);
   png_set_sig_bytes(png_ptr, 8);
 
-  png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_STRIP_16, NULL);
+  png_read_png(png_ptr, info_ptr, PNG_TRANSFORM_STRIP_16 |
+    PNG_TRANSFORM_STRIP_ALPHA | PNG_TRANSFORM_PACKING, NULL);
 
   row_pointers = png_get_rows(png_ptr, info_ptr);
 



More information about the commits mailing list