livekit-client 1.13.2 → 1.13.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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');