summaryrefslogtreecommitdiffhomepage
path: root/video-ps3eye/module.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2020-03-08 06:05:45 +0100
committerStanislaw Halik <sthalik@misaki.pl>2020-03-08 06:05:45 +0100
commit8babfb4caff1c32d74a4f58d28eba13bd3b23f21 (patch)
tree9b0a8f4f847bfe41a7ada02b67b00fe0972aa1d7 /video-ps3eye/module.cpp
parent98502444b0c5881797e4833ee1fc79388b94ba82 (diff)
video/ps3eye: copy from memory mapping
Diffstat (limited to 'video-ps3eye/module.cpp')
-rw-r--r--video-ps3eye/module.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/video-ps3eye/module.cpp b/video-ps3eye/module.cpp
index 2c9ce100..3ee43ec1 100644
--- a/video-ps3eye/module.cpp
+++ b/video-ps3eye/module.cpp
@@ -203,7 +203,8 @@ fail:
static_assert(offsetof(decltype(ptr.out), data_640x480) == offsetof(decltype(ptr.out), data_320x240));
ok:
- fr.data = (unsigned char*)ptr.out.data_640x480;
+ memcpy(data, (unsigned char*)ptr.out.data_640x480,sizeof(ptr.out.data_640x480));
+ fr.data = data;
return { fr, true};
}