Skip to content

Commit 9450f49

Browse files
committed
fix the data size from 0 to the actuall data size - in case of frame that is not video_frame
1 parent e8d8ed6 commit 9450f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrappers/python/pyrs_frame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void init_frame(py::module &m) {
5858
}
5959
}
6060
else
61-
return BufData(const_cast<void*>(self.get_data()), 1, std::string("@B"), 0); };
61+
return BufData(const_cast<void*>(self.get_data()), 1, std::string("@B"), self.get_data_size()); };
6262

6363
/* rs_frame.hpp */
6464
py::class_<rs2::stream_profile> stream_profile(m, "stream_profile", "Stores details about the profile of a stream.");

0 commit comments

Comments
 (0)