From a8b7d53f87f634a067ffe92e50569bd9850266ce Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 3 Aug 2017 14:59:22 +0800 Subject: [PATCH] update --- src/H264/ranges.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/H264/ranges.h b/src/H264/ranges.h index 99cc7399..ab89b5f4 100644 --- a/src/H264/ranges.h +++ b/src/H264/ranges.h @@ -96,7 +96,7 @@ namespace media { // original loop went too far. while ((i + 1) < ranges_.size() && ranges_[i + 1].first <= ranges_[i].second) { - ranges_[i].second = std::max(ranges_[i].second, ranges_[i + 1].second); + ranges_[i].second = max(ranges_[i].second, ranges_[i + 1].second); ranges_.erase(ranges_.begin() + i + 1); } @@ -133,8 +133,8 @@ namespace media { size_t j = 0; while (i < size() && j < other.size()) { - T max_start = std::max(start(i), other.start(j)); - T min_end = std::min(end(i), other.end(j)); + T max_start = max(start(i), other.start(j)); + T min_end = min(end(i), other.end(j)); // Add an intersection range to the result if the ranges overlap. if (max_start < min_end)