diff options
author | Ingar <ingar@telenet.be> | 2024-10-20 22:43:27 +0200 |
---|---|---|
committer | Ingar <ingar@telenet.be> | 2024-10-20 22:43:27 +0200 |
commit | 9f437669990ce1301eeb79611f69ab4766188db5 (patch) | |
tree | 4eacd46280a1acbc5500547204a68ec6c113be0b /libcamera-rpi-0.3.2-arch.patch | |
parent | f77cd7e32af627ef2713460f07d76880e301f001 (diff) |
Diffstat (limited to 'libcamera-rpi-0.3.2-arch.patch')
-rw-r--r-- | libcamera-rpi-0.3.2-arch.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libcamera-rpi-0.3.2-arch.patch b/libcamera-rpi-0.3.2-arch.patch new file mode 100644 index 0000000..108dc9d --- /dev/null +++ b/libcamera-rpi-0.3.2-arch.patch @@ -0,0 +1,11 @@ +--- libcamera-rpi-0.3.2/src/ipa/rpi/cam_helper/cam_helper_imx500.cpp 2024-10-20 21:38:58.492510656 +0200 ++++ libcamera-rpi-0.3.2-arch/src/ipa/rpi/cam_helper/cam_helper_imx500.cpp 2024-10-20 21:23:25.628222018 +0200 +@@ -257,7 +257,7 @@ + exported.height = inputTensorInfo.height; + exported.numChannels = inputTensorInfo.channels; + strncpy(exported.networkName, inputTensorInfo.networkName.c_str(), +- sizeof(exported.networkName)); ++ sizeof(exported.networkName) - 1); + exported.networkName[sizeof(exported.networkName) - 1] = '\0'; + metadata.set("cnn.input_tensor_info", exported); + metadata.set("cnn.input_tensor", std::move(inputTensorInfo.data)); |