mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53: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);
|
||||
|
||||
if (msDuration === 0 && !chunk.additions) {
|
||||
// No duration or additions, we can write out a SimpleBlock
|
||||
if (!chunk.additions) {
|
||||
// No additions, we can write out a SimpleBlock
|
||||
view.setUint8(3, Number(chunk.type === 'key') << 7); // Flags (keyframe flag only present for SimpleBlock)
|
||||
|
||||
const simpleBlock = { id: EBMLId.SimpleBlock, data: [
|
||||
|
||||
Reference in New Issue
Block a user