mediabunny 1.11.0 → 1.11.1

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.
@@ -18220,7 +18220,8 @@ ${cue.notes ?? ""}`;
18220
18220
  }
18221
18221
  this.output.addVideoTrack(videoSource, {
18222
18222
  frameRate: trackOptions.frameRate,
18223
- languageCode: track.languageCode,
18223
+ // TEMP: This condition can be removed when all demuxers properly homogenize to BCP47 in v2
18224
+ languageCode: isIso639Dash2LanguageCode(track.languageCode) ? track.languageCode : void 0,
18224
18225
  name: track.name ?? void 0,
18225
18226
  rotation: needsRerender ? 0 : totalRotation
18226
18227
  // Rerendering will bake the rotation into the output
@@ -18339,7 +18340,8 @@ ${cue.notes ?? ""}`;
18339
18340
  }
18340
18341
  }
18341
18342
  this.output.addAudioTrack(audioSource, {
18342
- languageCode: track.languageCode,
18343
+ // TEMP: This condition can be removed when all demuxers properly homogenize to BCP47 in v2
18344
+ languageCode: isIso639Dash2LanguageCode(track.languageCode) ? track.languageCode : void 0,
18343
18345
  name: track.name ?? void 0
18344
18346
  });
18345
18347
  this._addedCounts.audio++;