summaryrefslogtreecommitdiffstats
path: root/misc/opencv-2.2.0.patch
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-03-25 12:32:30 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2011-03-25 12:32:30 +0100
commit2e63cfdc023f609dc07a2568e132798caa9f7458 (patch)
tree6fbaeedb73feeed4dbacf90b4e49258e9ff7aee3 /misc/opencv-2.2.0.patch
parent7211a7cc2da2260874f9beb40b9c2c2389a74018 (diff)
downloaduca-2e63cfdc023f609dc07a2568e132798caa9f7458.tar.gz
uca-2e63cfdc023f609dc07a2568e132798caa9f7458.tar.bz2
uca-2e63cfdc023f609dc07a2568e132798caa9f7458.tar.xz
uca-2e63cfdc023f609dc07a2568e132798caa9f7458.zip
Fix memcpy problem
Diffstat (limited to 'misc/opencv-2.2.0.patch')
-rw-r--r--misc/opencv-2.2.0.patch12
1 files changed, 7 insertions, 5 deletions
diff --git a/misc/opencv-2.2.0.patch b/misc/opencv-2.2.0.patch
index 487d00e..f7297e9 100644
--- a/misc/opencv-2.2.0.patch
+++ b/misc/opencv-2.2.0.patch
@@ -123,8 +123,8 @@
=== added file 'modules/highgui/src/cap_uca.cpp'
--- modules/highgui/src/cap_uca.cpp 1970-01-01 00:00:00 +0000
-+++ modules/highgui/src/cap_uca.cpp 2011-03-25 10:26:29 +0000
-@@ -0,0 +1,232 @@
++++ modules/highgui/src/cap_uca.cpp 2011-03-25 11:31:07 +0000
+@@ -0,0 +1,234 @@
+/*M///////////////////////////////////////////////////////////////////////////////////////
+//
+// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
@@ -266,7 +266,7 @@
+ device->get_property(device, UCA_PROP_BITDEPTH, &bits, 0);
+ bit_depth = (bits == 8) ? IPL_DEPTH_8U : IPL_DEPTH_16U;
+
-+ int pixel_size = (bits == 8) ? 1 : 2;
++ pixel_size = (bits == 8) ? 1 : 2;
+ buffer = new char[width*height*pixel_size];
+ uca_cam_alloc(device, 10);
+
@@ -278,8 +278,10 @@
+
+void CvCapture_UCA::close()
+{
-+ device->stop_recording(device);
-+ uca_destroy(uca_handle);
++ if (device)
++ device->stop_recording(device);
++ if (uca_handle);
++ uca_destroy(uca_handle);
+ delete[] buffer;
+}
+