chore: fix minor script warnings (#25575)
This commit is contained in:
parent
353c63e47a
commit
515e85079f
7 changed files with 8 additions and 15 deletions
|
@ -30,7 +30,7 @@ function atob (str) {
|
|||
// in this case, frames has a very specific meaning, which will be
|
||||
// detailed once i finish writing the code
|
||||
|
||||
function ToWebM (frames, outputAsArray) {
|
||||
function ToWebM (frames) {
|
||||
const info = checkFrames(frames);
|
||||
|
||||
// max duration by cluster in milliseconds
|
||||
|
@ -235,7 +235,7 @@ function ToWebM (frames, outputAsArray) {
|
|||
if (i >= 3) {
|
||||
cues.data[i - 3].data[1].data[1].data = position;
|
||||
}
|
||||
const data = generateEBML([segment.data[i]], outputAsArray);
|
||||
const data = generateEBML([segment.data[i]]);
|
||||
position += data.size || data.byteLength || data.length;
|
||||
if (i !== 2) { // not cues
|
||||
// Save results to avoid having to encode everything twice
|
||||
|
@ -243,7 +243,7 @@ function ToWebM (frames, outputAsArray) {
|
|||
}
|
||||
}
|
||||
|
||||
return generateEBML(EBML, outputAsArray);
|
||||
return generateEBML(EBML);
|
||||
}
|
||||
|
||||
// sums the lengths of all the frames and gets the duration, woo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue