浏览代码

Cosmetics

Dominic Szablewski 9 年前
父节点
当前提交
45cd7084e7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/ts.js

+ 2 - 2
src/ts.js 查看文件

@@ -106,7 +106,7 @@ TS.prototype.parsePacket = function() {
106 106
 
107 107
 					// Can't use bit shifts here; we need 33 bits of precision,
108 108
 					// so we're using JavaScript's double number type. Also
109
-					// devide by the 90khz clock to get the pts in seconds
109
+					// divide by the 90khz clock to get the pts in seconds.
110 110
 					pts = (p32_30 * 1073741824 + p29_15 * 32768 + p14_0)/90000;
111 111
 					
112 112
 					this.currentTime = pts;
@@ -164,7 +164,7 @@ TS.prototype.resync = function() {
164 164
 	for (var i = 0; i < 187; i++) {
165 165
 		if (this.bits.bytes[byteIndex + i] === 0x47) {
166 166
 
167
-			// Look for 5 more sync tokens, each 188 bytes appart
167
+			// Look for 4 more sync tokens, each 188 bytes appart
168 168
 			var foundSync = true;
169 169
 			for (var j = 1; j < 5; j++) {
170 170
 				if (this.bits.bytes[byteIndex + i + 188 * j] !== 0x47) {