web/encode: expect polyfill to be present
This commit is contained in:
parent
f3a67554ff
commit
9410f613e4
1 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue