From 55752a2e2ef894bfa6d7a2a21a0278e3f2bede7d Mon Sep 17 00:00:00 2001 From: Green Sky Date: Fri, 8 Nov 2024 11:43:30 +0100 Subject: [PATCH] fix(toxav): pass video bit rate as kbit Previously we unintentionally made it Mbit. --- toxav/toxav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxav/toxav.c b/toxav/toxav.c index 413b643a32..dcb4597d66 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c @@ -1048,7 +1048,7 @@ bool toxav_video_send_frame(ToxAV *av, uint32_t friend_number, uint16_t width, u goto RETURN; } - if (vc_reconfigure_encoder(call->video, call->video_bit_rate * 1000, width, height, -1) != 0) { + if (vc_reconfigure_encoder(call->video, call->video_bit_rate, width, height, -1) != 0) { pthread_mutex_unlock(call->mutex_video); rc = TOXAV_ERR_SEND_FRAME_INVALID; goto RETURN;