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.");