From 9410f613e48b1dc94531f19e912f9f7214c93407 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Fri, 23 Aug 2024 18:39:35 +0000 Subject: [PATCH] web/encode: expect polyfill to be present --- web/src/lib/libav/encode.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/lib/libav/encode.ts b/web/src/lib/libav/encode.ts index c568d7fa..5041bc26 100644 --- a/web/src/lib/libav/encode.ts +++ b/web/src/lib/libav/encode.ts @@ -314,7 +314,7 @@ export default class EncodeLibAV extends LibAVWrapper { codec = 'mp4a.40.29'; } else throw "Unknown type: " + stream.codec_type; - const config = await streamToConfig(libav, stream); + const config = await streamToConfig(libav, stream, true); if (config === null) { throw "could not make encoder config"; } @@ -364,7 +364,7 @@ export default class EncodeLibAV extends LibAVWrapper { initDecoder = webcodecs.initAudioDecoder.bind(webcodecs); } else throw "Unknown type: " + stream.codec_type; - const config = await streamToConfig(libav, stream); + const config = await streamToConfig(libav, stream, true); if (config === null) { throw "could not make decoder config";