From 1c7602c65dc34ce979ab6869a1d2da1e71b50a54 Mon Sep 17 00:00:00 2001 From: Evan Shrubsole Date: Mon, 9 Jan 2023 10:22:04 +0000 Subject: [PATCH] [Unwrap] Migrate InterFrameDelay to RtpTimestampUnwrapper Bug: webrtc:13982 Change-Id: I0c4fe63f47d842fc5871baeb1137aa225bc10ea4 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/288960 Auto-Submit: Evan Shrubsole Commit-Queue: Rasmus Brandt Reviewed-by: Rasmus Brandt Cr-Commit-Position: refs/heads/main@{#39039} --- modules/video_coding/timing/BUILD.gn | 1 + modules/video_coding/timing/inter_frame_delay.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/video_coding/timing/BUILD.gn b/modules/video_coding/timing/BUILD.gn index 644ea8cb58..fc2ea9fdd6 100644 --- a/modules/video_coding/timing/BUILD.gn +++ b/modules/video_coding/timing/BUILD.gn @@ -26,6 +26,7 @@ rtc_library("inter_frame_delay") { "../../../api/units:frequency", "../../../api/units:time_delta", "../../../api/units:timestamp", + "../../../rtc_base:rtc_numerics", ] absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] } diff --git a/modules/video_coding/timing/inter_frame_delay.h b/modules/video_coding/timing/inter_frame_delay.h index 579a488cb1..03b5f78cc1 100644 --- a/modules/video_coding/timing/inter_frame_delay.h +++ b/modules/video_coding/timing/inter_frame_delay.h @@ -16,7 +16,7 @@ #include "absl/types/optional.h" #include "api/units/time_delta.h" #include "api/units/timestamp.h" -#include "modules/include/module_common_types_public.h" +#include "rtc_base/numerics/sequence_number_unwrapper.h" namespace webrtc { @@ -35,7 +35,7 @@ class InterFrameDelay { private: // The previous rtp timestamp passed to the delay estimate int64_t prev_rtp_timestamp_unwrapped_; - TimestampUnwrapper unwrapper_; + RtpTimestampUnwrapper unwrapper_; // The previous wall clock timestamp used by the delay estimate absl::optional prev_wall_clock_;