From: libvidcap c. <lib...@li...> - 2010-02-01 19:00:40
|
Revision: 101 http://libvidcap.svn.sourceforge.net/libvidcap/?rev=101&view=rev Author: bcholew Date: 2010-02-01 19:00:34 +0000 (Mon, 01 Feb 2010) Log Message: ----------- Fix bug/crash in DirectShow-specific code (not reached by most devices). Use height instead of width when stepping through rows of the source image buffer - in function ScaleAndFlipImage(). Courtesy of Chris Cooksey Modified Paths: -------------- branches/framesize_enhancements/src/directshow/DirectShowSource.cpp Modified: branches/framesize_enhancements/src/directshow/DirectShowSource.cpp =================================================================== --- branches/framesize_enhancements/src/directshow/DirectShowSource.cpp 2009-10-01 18:41:23 UTC (rev 100) +++ branches/framesize_enhancements/src/directshow/DirectShowSource.cpp 2010-02-01 19:00:34 UTC (rev 101) @@ -1050,7 +1050,7 @@ { memcpy( outBuff + i * outWidth * 4, - inBuff + (inWidth - i - 1) * inWidth * 4, + inBuff + (inHeight - i - 1) * inWidth * 4, outWidth * 4 ); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |