From 094c7641754ee6bac7fff0fede86d8d7523154f6 Mon Sep 17 00:00:00 2001 From: guillaumemichel Date: Tue, 3 Sep 2024 15:55:33 +0200 Subject: [PATCH] updating PROTO_OVERHEAD --- misc/webrtc-utils/src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/webrtc-utils/src/stream.rs b/misc/webrtc-utils/src/stream.rs index e409477c080..8086c336d03 100644 --- a/misc/webrtc-utils/src/stream.rs +++ b/misc/webrtc-utils/src/stream.rs @@ -47,7 +47,7 @@ mod state; /// pub const MAX_MSG_LEN: usize = 256 * 1024; // 256 KiB /// Length of varint, in bytes. -const VARINT_LEN: usize = 2; +const VARINT_LEN: usize = 4; /// Overhead of the protobuf encoding, in bytes. const PROTO_OVERHEAD: usize = 5; /// Maximum length of data, in bytes.