mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-29 20:03:48 +02:00
Implement the bulk of the MPEG-TS demuxer, add a bunch of tests, and a few other things
This commit is contained in:
@@ -20,6 +20,10 @@ export class Reader {
|
||||
throw new InputDisposedError();
|
||||
}
|
||||
|
||||
if (start < 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (this.fileSize !== null && start + length > this.fileSize) {
|
||||
return null;
|
||||
}
|
||||
@@ -49,6 +53,10 @@ export class Reader {
|
||||
throw new InputDisposedError();
|
||||
}
|
||||
|
||||
if (start < 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (this.fileSize !== null) {
|
||||
return this.requestSlice(
|
||||
start,
|
||||
|
||||
Reference in New Issue
Block a user