mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Add unhandled throws
This commit is contained in:
@@ -1303,6 +1303,10 @@ class MpegTsVideoTrackBacking extends MpegTsTrackBacking implements InputVideoTr
|
||||
const codec = this.elementaryStream.info.codec;
|
||||
const CHUNK_SIZE = 1024;
|
||||
|
||||
if (codec !== 'avc' && codec !== 'hevc') {
|
||||
throw new Error('Unhandled.');
|
||||
}
|
||||
|
||||
let packetStartPos: number | null = null;
|
||||
|
||||
while (true) {
|
||||
@@ -1522,7 +1526,7 @@ class MpegTsAudioTrackBacking extends MpegTsTrackBacking implements InputAudioTr
|
||||
context.seekTo(possibleHeaderStartPos + 1);
|
||||
}
|
||||
} else {
|
||||
throw new Error('Unreachable');
|
||||
throw new Error('Unhandled.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user