From fcada904857e066a202e5f4cff92cb9c4de8fca4 Mon Sep 17 00:00:00 2001 From: deadbeef Date: Wed, 24 Aug 2016 12:45:13 -0700 Subject: [PATCH] Fixing timestamp comparison assert. Wasn't handling wrap-around properly. Noticed this because a test failed. TBR=henrik.lundin@webrtc.org Review-Url: https://codereview.webrtc.org/2271203003 Cr-Commit-Position: refs/heads/master@{#13905} --- webrtc/modules/audio_coding/acm2/audio_coding_module.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/audio_coding/acm2/audio_coding_module.cc b/webrtc/modules/audio_coding/acm2/audio_coding_module.cc index f719b6c59c..2e7293c5a2 100644 --- a/webrtc/modules/audio_coding/acm2/audio_coding_module.cc +++ b/webrtc/modules/audio_coding/acm2/audio_coding_module.cc @@ -477,7 +477,7 @@ int32_t AudioCodingModuleImpl::Encode(const InputData& input_data) { return -1; if(!first_frame_) { - RTC_DCHECK_GT(input_data.input_timestamp, last_timestamp_) + RTC_DCHECK(IsNewerTimestamp(input_data.input_timestamp, last_timestamp_)) << "Time should not move backwards"; }