Issue 1315 fix crash with crop rectangle

git-svn-id: https://zxing.googlecode.com/svn/trunk@2370 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-08-06 10:39:34 +00:00
parent 12c113004d
commit 1acddf28a7

View file

@ -50,7 +50,7 @@ CGImageRef CGImageLuminanceSource::createImageFromBuffer
for(int y=0; y<height; y++) {
memcpy(bytes+y*newBytesPerRow,
baseAddress+left*4+(top+y)*bytesPerRow,
bytesPerRow);
newBytesPerRow);
}
}
CVPixelBufferUnlockBaseAddress(buffer, 0);