diff --git a/ngc_ft1.cpp b/ngc_ft1.cpp index 6147ee4..0379d41 100644 --- a/ngc_ft1.cpp +++ b/ngc_ft1.cpp @@ -260,7 +260,7 @@ void NGC_FT1_iterate(Tox *tox, NGC_FT1* ngc_ft1_ctx, float time_delta) { std::vector new_data; // TODO: parameterize packet size? -> only if JF increases lossy packet size >:) - size_t chunk_size = std::min(490u, tf.file_size - tf.file_size_current); + size_t chunk_size = std::min(496u, tf.file_size - tf.file_size_current); if (chunk_size == 0) { tf.state = State::FINISHING; break; // we done