From 1ff4cd26992fda087e47eaa5021356fc105befdb Mon Sep 17 00:00:00 2001 From: noacoohen Date: Wed, 16 Oct 2024 15:11:59 +0300 Subject: [PATCH] fix errors --- src/proc/rotation-filter.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/proc/rotation-filter.cpp b/src/proc/rotation-filter.cpp index 3ab21a0bc7..548471e2da 100644 --- a/src/proc/rotation-filter.cpp +++ b/src/proc/rotation-filter.cpp @@ -68,11 +68,13 @@ namespace librealsense { rs2::frame rotation_filter::process_frame(const rs2::frame_source& source, const rs2::frame& f) { - update_output_profile(f); auto src = f.as(); rs2::stream_profile profile = f.get_profile(); + _target_stream_profile = profile; rs2_format format = profile.format(); + _padded_width = src.get_height(); + _padded_height = src.get_width(); rs2_stream type = profile.stream_type(); auto bpp = src.get_bytes_per_pixel(); @@ -205,9 +207,9 @@ namespace librealsense { auto vf = f.as(); auto ret = source.allocate_video_frame(_target_stream_profile, f, vf.get_bytes_per_pixel(), - _padded_width, _padded_height, - _padded_width*vf.get_bytes_per_pixel(), + _padded_width, + _padded_height * vf.get_bytes_per_pixel(), tgt_type); return ret;