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

Unified Diff: media/mp4/track_run_iterator.cc

Issue 10536014: Implement ISO BMFF support in Media Source. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Don't use std::abs() (breaks on ARM) Created 8 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mp4/track_run_iterator.cc
diff --git a/media/mp4/track_run_iterator.cc b/media/mp4/track_run_iterator.cc
index 440ea06325e33e94022067cf24fca955fcff0469..8ec05e21099a551c34832454f23524c83e5d95f4 100644
--- a/media/mp4/track_run_iterator.cc
+++ b/media/mp4/track_run_iterator.cc
@@ -13,7 +13,8 @@ namespace media {
namespace mp4 {
base::TimeDelta TimeDeltaFromFrac(int64 numer, uint64 denom) {
- DCHECK_LT(std::abs(numer), kint64max / base::Time::kMicrosecondsPerSecond);
+ DCHECK_LT((numer > 0 ? numer : -numer),
+ kint64max / base::Time::kMicrosecondsPerSecond);
return base::TimeDelta::FromMicroseconds(
base::Time::kMicrosecondsPerSecond * numer / denom);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698