mediabunny 1.11.0 → 1.11.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.
@@ -15319,7 +15319,9 @@ ${cue.notes ?? ""}`;
15319
15319
  case 2274716 /* Language */:
15320
15320
  {
15321
15321
  if (!this.currentTrack) break;
15322
- if (this.currentTrack.languageCode) break;
15322
+ if (this.currentTrack.languageCode !== UNDETERMINED_LANGUAGE) {
15323
+ break;
15324
+ }
15323
15325
  this.currentTrack.languageCode = reader.readAsciiString(size);
15324
15326
  if (!isIso639Dash2LanguageCode(this.currentTrack.languageCode)) {
15325
15327
  this.currentTrack.languageCode = UNDETERMINED_LANGUAGE;
@@ -18220,7 +18222,8 @@ ${cue.notes ?? ""}`;
18220
18222
  }
18221
18223
  this.output.addVideoTrack(videoSource, {
18222
18224
  frameRate: trackOptions.frameRate,
18223
- languageCode: track.languageCode,
18225
+ // TEMP: This condition can be removed when all demuxers properly homogenize to BCP47 in v2
18226
+ languageCode: isIso639Dash2LanguageCode(track.languageCode) ? track.languageCode : void 0,
18224
18227
  name: track.name ?? void 0,
18225
18228
  rotation: needsRerender ? 0 : totalRotation
18226
18229
  // Rerendering will bake the rotation into the output
@@ -18339,7 +18342,8 @@ ${cue.notes ?? ""}`;
18339
18342
  }
18340
18343
  }
18341
18344
  this.output.addAudioTrack(audioSource, {
18342
- languageCode: track.languageCode,
18345
+ // TEMP: This condition can be removed when all demuxers properly homogenize to BCP47 in v2
18346
+ languageCode: isIso639Dash2LanguageCode(track.languageCode) ? track.languageCode : void 0,
18343
18347
  name: track.name ?? void 0
18344
18348
  });
18345
18349
  this._addedCounts.audio++;