Skip to content

Commit

Permalink
fix(toxav): pass video bit rate as kbit
Browse files Browse the repository at this point in the history
Previously we unintentionally made it Mbit.
  • Loading branch information
Green-Sky committed Nov 9, 2024
1 parent 7e57328 commit 55752a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toxav/toxav.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 55752a2

Please sign in to comment.