diff options
Diffstat (limited to 'media-libs/opencv/files/opencv-2.0.0-libpng14.patch')
-rw-r--r-- | media-libs/opencv/files/opencv-2.0.0-libpng14.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/media-libs/opencv/files/opencv-2.0.0-libpng14.patch b/media-libs/opencv/files/opencv-2.0.0-libpng14.patch new file mode 100644 index 000000000000..56f7a4e6e401 --- /dev/null +++ b/media-libs/opencv/files/opencv-2.0.0-libpng14.patch @@ -0,0 +1,13 @@ +http://www.libpng.org/pub/png/src/libpng-1.2.x-to-1.4.x-summary.txt + +--- src/highgui/grfmt_png.cpp ++++ src/highgui/grfmt_png.cpp +@@ -223,7 +223,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( CV_MAT_CN(m_type) > 1 && color ) + png_set_bgr( png_ptr ); // convert RGB to BGR |