mediabunny 1.4.0 → 1.4.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.
@@ -7491,7 +7491,8 @@ ${cue.notes ?? ""}`;
7491
7491
  if (isVideoFrame(this._data)) {
7492
7492
  return new _VideoSample(this._data.clone(), {
7493
7493
  timestamp: this.timestamp,
7494
- duration: this.duration
7494
+ duration: this.duration,
7495
+ rotation: this.rotation
7495
7496
  });
7496
7497
  } else if (this._data instanceof Uint8Array) {
7497
7498
  return new _VideoSample(this._data.slice(), {
@@ -7500,7 +7501,8 @@ ${cue.notes ?? ""}`;
7500
7501
  codedHeight: this.codedHeight,
7501
7502
  timestamp: this.timestamp,
7502
7503
  duration: this.duration,
7503
- colorSpace: this.colorSpace
7504
+ colorSpace: this.colorSpace,
7505
+ rotation: this.rotation
7504
7506
  });
7505
7507
  } else {
7506
7508
  return new _VideoSample(this._data, {
@@ -7509,7 +7511,8 @@ ${cue.notes ?? ""}`;
7509
7511
  codedHeight: this.codedHeight,
7510
7512
  timestamp: this.timestamp,
7511
7513
  duration: this.duration,
7512
- colorSpace: this.colorSpace
7514
+ colorSpace: this.colorSpace,
7515
+ rotation: this.rotation
7513
7516
  });
7514
7517
  }
7515
7518
  }
@@ -14315,6 +14318,10 @@ ${cue.notes ?? ""}`;
14315
14318
  await this.metadataReader.reader.loadRange(this.metadataReader.pos, this.metadataReader.pos + size);
14316
14319
  this.readContiguousElements(this.metadataReader, size);
14317
14320
  }
14321
+ if (this.currentSegment.timestampScale === -1) {
14322
+ this.currentSegment.timestampScale = 1e6;
14323
+ this.currentSegment.timestampFactor = 1e9 / 1e6;
14324
+ }
14318
14325
  this.currentSegment.tracks.sort((a, b) => Number(b.isDefault) - Number(a.isDefault));
14319
14326
  this.currentSegment.cuePoints.sort((a, b) => a.clusterPosition - b.clusterPosition);
14320
14327
  const allTrackIds = this.currentSegment.tracks.map((x) => x.id);