mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 05:43:50 +02:00
Use SimpleBlock in almost all cases now (cries a little inside) (fixes #62)
This commit is contained in:
@@ -812,8 +812,8 @@ export class MatroskaMuxer extends Muxer {
|
|||||||
|
|
||||||
const msDuration = Math.round(1000 * chunk.duration);
|
const msDuration = Math.round(1000 * chunk.duration);
|
||||||
|
|
||||||
if (msDuration === 0 && !chunk.additions) {
|
if (!chunk.additions) {
|
||||||
// No duration or additions, we can write out a SimpleBlock
|
// No additions, we can write out a SimpleBlock
|
||||||
view.setUint8(3, Number(chunk.type === 'key') << 7); // Flags (keyframe flag only present for SimpleBlock)
|
view.setUint8(3, Number(chunk.type === 'key') << 7); // Flags (keyframe flag only present for SimpleBlock)
|
||||||
|
|
||||||
const simpleBlock = { id: EBMLId.SimpleBlock, data: [
|
const simpleBlock = { id: EBMLId.SimpleBlock, data: [
|
||||||
|
|||||||
Reference in New Issue
Block a user