<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- OpenCV-2.1.0/src/highgui/grfmt_png.cpp	2010-04-06 03:24:44.000000000 +0200
+++ OpenCV-2.1.0/src/highgui/grfmt_png.cpp.libpng14	2010-10-11 19:42:14.000000000 +0200
@@ -223,7 +223,7 @@
                 png_set_palette_to_rgb( png_ptr );
 
             if( m_color_type == PNG_COLOR_TYPE_GRAY &amp;&amp; m_bit_depth &lt; 8 )
-                png_set_gray_1_2_4_to_8( png_ptr );
+                png_set_expand_gray_1_2_4_to_8( png_ptr );
 
             if( CV_MAT_CN(m_type) &gt; 1 &amp;&amp; color )
                 png_set_bgr( png_ptr ); // convert RGB to BGR
</pre></body></html>