Dominic Szablewski vor 9 Jahren
Ursprung
Commit
45cd7084e7
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/ts.js

+ 2 - 2
src/ts.js Datei anzeigen

106
 
106
 
107
 					// Can't use bit shifts here; we need 33 bits of precision,
107
 					// Can't use bit shifts here; we need 33 bits of precision,
108
 					// so we're using JavaScript's double number type. Also
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
 					pts = (p32_30 * 1073741824 + p29_15 * 32768 + p14_0)/90000;
110
 					pts = (p32_30 * 1073741824 + p29_15 * 32768 + p14_0)/90000;
111
 					
111
 					
112
 					this.currentTime = pts;
112
 					this.currentTime = pts;
164
 	for (var i = 0; i < 187; i++) {
164
 	for (var i = 0; i < 187; i++) {
165
 		if (this.bits.bytes[byteIndex + i] === 0x47) {
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
 			var foundSync = true;
168
 			var foundSync = true;
169
 			for (var j = 1; j < 5; j++) {
169
 			for (var j = 1; j < 5; j++) {
170
 				if (this.bits.bytes[byteIndex + i + 188 * j] !== 0x47) {
170
 				if (this.bits.bytes[byteIndex + i + 188 * j] !== 0x47) {