mediabunny 1.52.0 → 1.52.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20265,6 +20265,7 @@ var Mediabunny = (() => {
20265
20265
  "The '2d' canvas context is required to transform VideoSamples. Register a custom transformer using registerVideoSampleTransformer to work around this limitation."
20266
20266
  );
20267
20267
  }
20268
+ context.imageSmoothingQuality = "high";
20268
20269
  if (description.alpha === "discard") {
20269
20270
  context.fillStyle = "black";
20270
20271
  context.fillRect(0, 0, description.width, description.height);
@@ -23520,7 +23521,7 @@ var Mediabunny = (() => {
23520
23521
  // Firefox has VideoFrame glitches with opaque canvases
23521
23522
  });
23522
23523
  assert(context);
23523
- context.resetTransform();
23524
+ context.imageSmoothingQuality = "high";
23524
23525
  if (!canvasIsNew) {
23525
23526
  if (!this._alpha && isFirefox()) {
23526
23527
  context.fillStyle = "black";
@@ -27400,8 +27401,10 @@ var Mediabunny = (() => {
27400
27401
  u16(1),
27401
27402
  // Frame count
27402
27403
  // Compressor name
27404
+ u8("Mediabunny".length),
27405
+ // Weird Pascal-style string
27403
27406
  ascii("Mediabunny"),
27404
- Array(32 - "Mediabunny".length).fill(0),
27407
+ Array(31 - "Mediabunny".length).fill(0),
27405
27408
  u16(trackData.info.hasAlphaChannel ? 32 : 24),
27406
27409
  // Depth
27407
27410
  i16(65535)