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}
This commit is contained in:
deadbeef 2016-08-24 12:45:13 -07:00 committed by Commit bot
parent 36a06a94fb
commit fcada90485

View File

@ -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";
}