Skip to content

Commit 6889cb0

Browse files
updating PROTO_OVERHEAD
1 parent 50c7468 commit 6889cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/webrtc-utils/src/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub const MAX_MSG_LEN: usize = 256 * 1024; // 256 KiB
4949
/// Length of varint, in bytes.
5050
const VARINT_LEN: usize = 2;
5151
/// Overhead of the protobuf encoding, in bytes.
52-
const PROTO_OVERHEAD: usize = 5;
52+
const PROTO_OVERHEAD: usize = 7;
5353
/// Maximum length of data, in bytes.
5454
const MAX_DATA_LEN: usize = MAX_MSG_LEN - VARINT_LEN - PROTO_OVERHEAD;
5555

0 commit comments

Comments
 (0)