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:
parent
36a06a94fb
commit
fcada90485
@ -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";
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user