Skip to content

Commit

Permalink
Forwarding timestamp when resizing a frame
Browse files Browse the repository at this point in the history
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
  • Loading branch information
janherling authored and facebook-github-bot committed Nov 13, 2024
1 parent 6d56c14 commit a5b9a75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions impl/ocean/cv/FrameInterpolatorBilinear.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a5b9a75

Please sign in to comment.