소스 검색

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) {