From a5b9a75eeb9f3a8f833bf0fa2a4fd53224a9147e Mon Sep 17 00:00:00 2001 From: Jan Herling Date: Tue, 12 Nov 2024 19:00:32 -0800 Subject: [PATCH] Forwarding timestamp when resizing a frame Summary: The function uses an internal (temporary) frame object. Due to this object, timestamp information gets lost - thus, explicitly setting the timestamp. Reviewed By: enpe Differential Revision: D65846382 Privacy Context Container: L1191897 fbshipit-source-id: 8868b851e100e1162eb08ea9f8a59425d9021eea --- impl/ocean/cv/FrameInterpolatorBilinear.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/impl/ocean/cv/FrameInterpolatorBilinear.h b/impl/ocean/cv/FrameInterpolatorBilinear.h index 6915b3351..77edc6152 100644 --- a/impl/ocean/cv/FrameInterpolatorBilinear.h +++ b/impl/ocean/cv/FrameInterpolatorBilinear.h @@ -1426,6 +1426,9 @@ inline bool FrameInterpolatorBilinear::Comfort::resize(Frame& frame, const unsig return false; } + target.setTimestamp(frame.timestamp()); + target.setRelativeTimestamp(frame.relativeTimestamp()); + frame = std::move(target); return true; }