Prettier code
This commit is contained in:
parent
f4da466d17
commit
f6b7204b33
@ -45,7 +45,7 @@ export class WebmSeeker extends Duplex {
|
|||||||
this.seekfound = false;
|
this.seekfound = false;
|
||||||
this.data_length = 0;
|
this.data_length = 0;
|
||||||
this.data_size = 0;
|
this.data_size = 0;
|
||||||
this.offset = 0
|
this.offset = 0;
|
||||||
this.sec = sec;
|
this.sec = sec;
|
||||||
this.time = Math.floor(sec / 10) * 10;
|
this.time = Math.floor(sec / 10) * 10;
|
||||||
}
|
}
|
||||||
@ -145,7 +145,7 @@ export class WebmSeeker extends Duplex {
|
|||||||
|
|
||||||
// stop parsing the header once we have found the correct cue
|
// stop parsing the header once we have found the correct cue
|
||||||
|
|
||||||
if(ebmlID.name === "seekHead") this.offset = oldCursor
|
if (ebmlID.name === 'seekHead') this.offset = oldCursor;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
ebmlID.name === 'cueClusterPosition' &&
|
ebmlID.name === 'cueClusterPosition' &&
|
||||||
@ -216,9 +216,9 @@ export class WebmSeeker extends Duplex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private getClosestBlock(): Error | undefined {
|
private getClosestBlock(): Error | undefined {
|
||||||
if(this.sec === 0){
|
if (this.sec === 0) {
|
||||||
this.seekfound = true
|
this.seekfound = true;
|
||||||
return this.readTag()
|
return this.readTag();
|
||||||
}
|
}
|
||||||
if (!this.chunk) return new Error('Chunk is missing');
|
if (!this.chunk) return new Error('Chunk is missing');
|
||||||
this.cursor = 0;
|
this.cursor = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user