livekit-client 1.13.2 → 1.13.3

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.
@@ -1098,6 +1098,7 @@ class FrameCryptor extends BaseFrameCryptor {
1098
1098
  if (isFrameServerInjected(encodedFrame.data, this.sifTrailer)) {
1099
1099
  this.sifGuard.recordSif();
1100
1100
  if (this.sifGuard.isSifAllowed()) {
1101
+ encodedFrame.data = encodedFrame.data.slice(0, encodedFrame.data.byteLength - this.sifTrailer.byteLength);
1101
1102
  return controller.enqueue(encodedFrame);
1102
1103
  } else {
1103
1104
  workerLogger.warn('SIF limit reached, dropping frame');