Skip to content

Commit

Permalink
fix the data size from 0 to the actuall data size - in case of frame …
Browse files Browse the repository at this point in the history
…that is not video_frame
  • Loading branch information
noacoohen committed Nov 21, 2023
1 parent e8d8ed6 commit 9450f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrappers/python/pyrs_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void init_frame(py::module &m) {
}
}
else
return BufData(const_cast<void*>(self.get_data()), 1, std::string("@B"), 0); };
return BufData(const_cast<void*>(self.get_data()), 1, std::string("@B"), self.get_data_size()); };

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

0 comments on commit 9450f49

Please sign in to comment.