| Index: webrtc/modules/video_coding/codecs/test/videoprocessor.cc
|
| diff --git a/webrtc/modules/video_coding/codecs/test/videoprocessor.cc b/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
|
| index cb7ab75af3c2213b281e25148d54fdb7b59a8380..aab3cbfa5fee1120edda202998359079e141fd85 100644
|
| --- a/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
|
| +++ b/webrtc/modules/video_coding/codecs/test/videoprocessor.cc
|
| @@ -385,9 +385,9 @@ void VideoProcessorImpl::FrameDecoded(const VideoFrame& image) {
|
|
|
| int VideoProcessorImpl::GetElapsedTimeMicroseconds(int64_t start,
|
| int64_t stop) {
|
| - uint64_t encode_time = (stop - start) / rtc::kNumNanosecsPerMicrosec;
|
| - RTC_DCHECK_LT(encode_time,
|
| - static_cast<unsigned int>(std::numeric_limits<int>::max()));
|
| + int64_t encode_time = (stop - start) / rtc::kNumNanosecsPerMicrosec;
|
| + RTC_DCHECK_GE(encode_time, std::numeric_limits<int>::min());
|
| + RTC_DCHECK_LE(encode_time, std::numeric_limits<int>::max());
|
| return static_cast<int>(encode_time);
|
| }
|
|
|
|
|