mirror of
https://github.com/Green-Sky/tox_ngc_ft1.git
synced 2024-12-22 10:33:26 +01:00
squeeze 6 more bytes into the data packet
This commit is contained in:
parent
3675c2a1a8
commit
bbc96bd776
@ -260,7 +260,7 @@ void NGC_FT1_iterate(Tox *tox, NGC_FT1* ngc_ft1_ctx, float time_delta) {
|
||||
std::vector<uint8_t> new_data;
|
||||
|
||||
// TODO: parameterize packet size? -> only if JF increases lossy packet size >:)
|
||||
size_t chunk_size = std::min<size_t>(490u, tf.file_size - tf.file_size_current);
|
||||
size_t chunk_size = std::min<size_t>(496u, tf.file_size - tf.file_size_current);
|
||||
if (chunk_size == 0) {
|
||||
tf.state = State::FINISHING;
|
||||
break; // we done
|
||||
|
Loading…
Reference in New Issue
Block a user