mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 02:09:22 +02:00
Also check the lang in case insensitive
This commit is contained in:
parent
33e7f7384e
commit
2a9630258f
22658 changed files with 3562773 additions and 3562767 deletions
38
node_modules/mux.js/cjs/tools/parse-tfdt.js
generated
vendored
38
node_modules/mux.js/cjs/tools/parse-tfdt.js
generated
vendored
|
@ -1,20 +1,20 @@
|
|||
"use strict";
|
||||
|
||||
var toUnsigned = require('../utils/bin').toUnsigned;
|
||||
|
||||
var tfdt = function tfdt(data) {
|
||||
var result = {
|
||||
version: data[0],
|
||||
flags: new Uint8Array(data.subarray(1, 4)),
|
||||
baseMediaDecodeTime: toUnsigned(data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7])
|
||||
};
|
||||
|
||||
if (result.version === 1) {
|
||||
result.baseMediaDecodeTime *= Math.pow(2, 32);
|
||||
result.baseMediaDecodeTime += toUnsigned(data[8] << 24 | data[9] << 16 | data[10] << 8 | data[11]);
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
"use strict";
|
||||
|
||||
var toUnsigned = require('../utils/bin').toUnsigned;
|
||||
|
||||
var tfdt = function tfdt(data) {
|
||||
var result = {
|
||||
version: data[0],
|
||||
flags: new Uint8Array(data.subarray(1, 4)),
|
||||
baseMediaDecodeTime: toUnsigned(data[4] << 24 | data[5] << 16 | data[6] << 8 | data[7])
|
||||
};
|
||||
|
||||
if (result.version === 1) {
|
||||
result.baseMediaDecodeTime *= Math.pow(2, 32);
|
||||
result.baseMediaDecodeTime += toUnsigned(data[8] << 24 | data[9] << 16 | data[10] << 8 | data[11]);
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
module.exports = tfdt;
|
Loading…
Add table
Add a link
Reference in a new issue