Skip to content

Commit

Permalink
updating PROTO_OVERHEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumemichel committed Sep 3, 2024
1 parent 50c7468 commit 6889cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/webrtc-utils/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub const MAX_MSG_LEN: usize = 256 * 1024; // 256 KiB
/// Length of varint, in bytes.
const VARINT_LEN: usize = 2;
/// Overhead of the protobuf encoding, in bytes.
const PROTO_OVERHEAD: usize = 5;
const PROTO_OVERHEAD: usize = 7;
/// Maximum length of data, in bytes.
const MAX_DATA_LEN: usize = MAX_MSG_LEN - VARINT_LEN - PROTO_OVERHEAD;

Expand Down

0 comments on commit 6889cb0

Please sign in to comment.