diff --git a/modules/remote_bitrate_estimator/remote_estimator_proxy.cc b/modules/remote_bitrate_estimator/remote_estimator_proxy.cc index 8cde28d027..d9745c9f54 100644 --- a/modules/remote_bitrate_estimator/remote_estimator_proxy.cc +++ b/modules/remote_bitrate_estimator/remote_estimator_proxy.cc @@ -122,7 +122,7 @@ void RemoteEstimatorProxy::OnPacketArrival(uint16_t sequence_number, // SequenceNumberUnwrapper doesn't do this, so we should replace this with // calls to IsNewerSequenceNumber instead. int64_t seq = unwrapper_.Unwrap(sequence_number); - if (seq > window_start_seq_ + 0xFFFF / 2) { + if (window_start_seq_ != -1 && seq > window_start_seq_ + 0xFFFF / 2) { RTC_LOG(LS_WARNING) << "Skipping this sequence number (" << sequence_number << ") since it likely is reordered, but the unwrapper" "failed to handle it. Feedback window starts at "