Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Unified Diff: webrtc/base/checks.h

Issue 2119393002: Fixed time moving backwards in the AudioCodingModule. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated Dtx tests that moved the input timestamp backwards to not do that. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/acm2/audio_coding_module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/checks.h
diff --git a/webrtc/base/checks.h b/webrtc/base/checks.h
index 681361a3d29794ab65bad98c42f7f12d3ee41b55..e66c0611864392792833b1244dc11a835c24b725 100644
--- a/webrtc/base/checks.h
+++ b/webrtc/base/checks.h
@@ -220,7 +220,8 @@ class FatalMessage {
// remainder is zero.
template <typename T>
inline T CheckedDivExact(T a, T b) {
- RTC_CHECK_EQ(a % b, static_cast<T>(0));
+ RTC_CHECK_EQ(a % b, static_cast<T>(0)) << a << " is not evenly divisible by "
+ << b;
return a / b;
}
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/acm2/audio_coding_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698