[opencv] 91/98: Restore 2.4 source branch for bug fix 6317.
Mattia Rizzolo
mattia at debian.org
Tue Oct 4 17:51:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to annotated tag 2.4.13
in repository opencv.
commit db0ae2ca5030c03b2b1c331efc314ff1a5e3e1aa
Author: Kevin, Hu <huzq85 at gmail.com>
Date: Tue Apr 19 19:27:42 2016 +0800
Restore 2.4 source branch for bug fix 6317.
---
modules/highgui/src/grfmt_png.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/modules/highgui/src/grfmt_png.cpp b/modules/highgui/src/grfmt_png.cpp
index bbbfb94..22160a9 100644
--- a/modules/highgui/src/grfmt_png.cpp
+++ b/modules/highgui/src/grfmt_png.cpp
@@ -228,8 +228,6 @@ bool PngDecoder::readData( Mat& img )
AutoBuffer<uchar*> _buffer(m_height);
uchar** buffer = _buffer;
int color = img.channels() > 1;
- uchar* data = img.data;
- int step = (int)img.step;
if( m_png_ptr && m_info_ptr && m_end_info && m_width && m_height )
{
@@ -281,7 +279,7 @@ bool PngDecoder::readData( Mat& img )
png_read_update_info( png_ptr, info_ptr );
for( y = 0; y < m_height; y++ )
- buffer[y] = data + y*step;
+ buffer[y] = img.data + y*img.step;
png_read_image( png_ptr, buffer );
png_read_end( png_ptr, end_info );
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list