Skip to content

Commit 55752a2

Browse files
committed
fix(toxav): pass video bit rate as kbit
Previously we unintentionally made it Mbit.
1 parent 7e57328 commit 55752a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toxav/toxav.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ bool toxav_video_send_frame(ToxAV *av, uint32_t friend_number, uint16_t width, u
10481048
goto RETURN;
10491049
}
10501050

1051-
if (vc_reconfigure_encoder(call->video, call->video_bit_rate * 1000, width, height, -1) != 0) {
1051+
if (vc_reconfigure_encoder(call->video, call->video_bit_rate, width, height, -1) != 0) {
10521052
pthread_mutex_unlock(call->mutex_video);
10531053
rc = TOXAV_ERR_SEND_FRAME_INVALID;
10541054
goto RETURN;

0 commit comments

Comments
 (0)