Index: third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp |
diff --git a/third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp b/third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp |
index 6a487d6e1b8561c2a398685201dbb7e879db93f2..0b9410f7dd56d8c89e00ab8467251abe17ac1826 100644 |
--- a/third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp |
+++ b/third_party/WebKit/Source/core/html/MediaFragmentURIParser.cpp |
@@ -31,8 +31,6 @@ |
namespace blink { |
-const int secondsPerHour = 3600; |
-const int secondsPerMinute = 60; |
const unsigned nptIdentiferLength = 4; // "npt:" |
static String collectDigits(const LChar* input, |
@@ -310,6 +308,8 @@ bool MediaFragmentURIParser::parseNPTTime(const LChar* timeString, |
if (offset < length && timeString[offset] == '.') |
fraction = collectFraction(timeString, length, offset).toDouble(); |
+ const int secondsPerHour = 3600; |
+ const int secondsPerMinute = 60; |
time = (value1 * secondsPerHour) + (value2 * secondsPerMinute) + value3 + |
fraction; |
return true; |