Bug 1880804 [wpt PR 44645] - Implement constructor in RTCEncodedVideoFrame, a=testonly
[gecko.git] / third_party / libwebrtc / moz-patch-stack / 0072.patch
blob4006ab5b600cabec610338c98370f50d9ddddb55
1 From: Andreas Pehrson <apehrson@mozilla.com>
2 Date: Wed, 11 Jan 2023 22:42:00 +0000
3 Subject: Bug 1800942 - Add DCHECKs to
4 TimestampExtrapolator::ExtrapolateLocalTime. r=mjf
6 Differential Revision: https://phabricator.services.mozilla.com/D166536
7 Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/c5df7f40392464ffc63f44a53ddcaab2091741e0
8 ---
9 modules/video_coding/timing/timestamp_extrapolator.cc | 1 +
10 1 file changed, 1 insertion(+)
12 diff --git a/modules/video_coding/timing/timestamp_extrapolator.cc b/modules/video_coding/timing/timestamp_extrapolator.cc
13 index a90df8bf7f..77e5508a76 100644
14 --- a/modules/video_coding/timing/timestamp_extrapolator.cc
15 +++ b/modules/video_coding/timing/timestamp_extrapolator.cc
16 @@ -125,6 +125,7 @@ void TimestampExtrapolator::Update(Timestamp now, uint32_t ts90khz) {
17 absl::optional<Timestamp> TimestampExtrapolator::ExtrapolateLocalTime(
18 uint32_t timestamp90khz) const {
19 int64_t unwrapped_ts90khz = unwrapper_.PeekUnwrap(timestamp90khz);
20 + RTC_DCHECK_GE(unwrapped_ts90khz, 0);
22 if (!first_unwrapped_timestamp_) {
23 return absl::nullopt;