diff options
Diffstat (limited to 'libraries/opencv/opencv-libpng14.patch')
-rw-r--r-- | libraries/opencv/opencv-libpng14.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libraries/opencv/opencv-libpng14.patch b/libraries/opencv/opencv-libpng14.patch new file mode 100644 index 0000000000..fa57f5e115 --- /dev/null +++ b/libraries/opencv/opencv-libpng14.patch @@ -0,0 +1,12 @@ +diff -U 3 -H -d -r -N -- opencv-1.1.0.old/otherlibs/highgui/grfmt_png.cpp opencv-1.1.0/otherlibs/highgui/grfmt_png.cpp +--- opencv-1.1.0.old/otherlibs/highgui/grfmt_png.cpp 2006-10-11 12:51:43.000000000 -0400 ++++ opencv-1.1.0/otherlibs/highgui/grfmt_png.cpp 2010-05-23 17:46:19.232028822 -0400 +@@ -215,7 +215,7 @@ + png_set_palette_to_rgb( png_ptr ); + + if( m_color_type == PNG_COLOR_TYPE_GRAY && m_bit_depth < 8 ) +- png_set_gray_1_2_4_to_8( png_ptr ); ++ png_set_expand_gray_1_2_4_to_8( png_ptr ); + + if( m_iscolor && color ) + png_set_bgr( png_ptr ); // convert RGB to BGR |