mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 13:53:53 +02:00
Yes it can!
This commit is contained in:
@@ -643,8 +643,9 @@ class FlacAudioTrackBacking implements InputAudioTrackBacking {
|
|||||||
options: PacketRetrievalOptions,
|
options: PacketRetrievalOptions,
|
||||||
): Promise<EncodedPacket | null> {
|
): Promise<EncodedPacket | null> {
|
||||||
assert(this.demuxer.audioInfo);
|
assert(this.demuxer.audioInfo);
|
||||||
|
|
||||||
if (timestamp < 0) {
|
if (timestamp < 0) {
|
||||||
throw new Error('Timestamp cannot be negative');
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const release = await this.demuxer.readingMutex.acquire();
|
const release = await this.demuxer.readingMutex.acquire();
|
||||||
|
|||||||
Reference in New Issue
Block a user