mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 03:13:51 +02:00
Simplify PCM regex (closes #380)
This commit is contained in:
+1
-1
@@ -629,7 +629,7 @@ export const guessDescriptionForAudio = (decoderConfig: AudioDecoderConfig): Uin
|
||||
|
||||
export const OPUS_SAMPLE_RATE = 48_000;
|
||||
|
||||
const PCM_CODEC_REGEX = /^pcm-([usf])(\d+)+(be)?$/;
|
||||
const PCM_CODEC_REGEX = /^pcm-([usf])(\d+)(be)?$/;
|
||||
|
||||
export const parsePcmCodec = (codec: PcmAudioCodec) => {
|
||||
assert(PCM_AUDIO_CODECS.includes(codec));
|
||||
|
||||
Reference in New Issue
Block a user