diff options
Diffstat (limited to 'video-ps3eye/module.cpp')
-rw-r--r-- | video-ps3eye/module.cpp | 3 |
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}; } |