mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 05:13:50 +02:00
Add codec-specific encoder configs
This commit is contained in:
@@ -696,7 +696,7 @@ export const dOps = (trackData: IsobmffAudioTrackData) => {
|
||||
// https://www.rfc-editor.org/rfc/rfc7845#section-5
|
||||
const description = trackData.info.decoderConfig?.description;
|
||||
if (description) {
|
||||
assert(description.byteLength < 18); // Is validated in an earlier step
|
||||
assert(description.byteLength >= 18); // Is validated in an earlier step
|
||||
|
||||
const view = ArrayBuffer.isView(description)
|
||||
? new DataView(description.buffer, description.byteOffset, description.byteLength)
|
||||
|
||||
Reference in New Issue
Block a user