From 9450f4954e0e974763bf246a9d5fcb8d59bae613 Mon Sep 17 00:00:00 2001 From: noacoohen Date: Tue, 21 Nov 2023 17:31:06 +0200 Subject: [PATCH] fix the data size from 0 to the actuall data size - in case of frame that is not video_frame --- wrappers/python/pyrs_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/python/pyrs_frame.cpp b/wrappers/python/pyrs_frame.cpp index 4353b89400..18163bd2ff 100644 --- a/wrappers/python/pyrs_frame.cpp +++ b/wrappers/python/pyrs_frame.cpp @@ -58,7 +58,7 @@ void init_frame(py::module &m) { } } else - return BufData(const_cast(self.get_data()), 1, std::string("@B"), 0); }; + return BufData(const_cast(self.get_data()), 1, std::string("@B"), self.get_data_size()); }; /* rs_frame.hpp */ py::class_ stream_profile(m, "stream_profile", "Stores details about the profile of a stream.");