From a7c55409fc1d7584c0d53468f582ddaf6d1d7fba Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 24 Jun 2014 09:32:46 -0400 Subject: [PATCH] Fixed video bitrate being set way higher than it should. Video bitrate is set in kb/s not b/s. --- toxav/toxav.c | 2 +- toxav/toxav.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toxav/toxav.c b/toxav/toxav.c index 9606c191..4afb025d 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c @@ -77,7 +77,7 @@ struct _ToxAv { }; const ToxAvCodecSettings av_DefaultSettings = { - 1000000, + 1000, 800, 600, diff --git a/toxav/toxav.h b/toxav/toxav.h index c99a298b..a548ee90 100644 --- a/toxav/toxav.h +++ b/toxav/toxav.h @@ -110,7 +110,7 @@ typedef enum { * @brief Encoding settings. */ typedef struct _ToxAvCodecSettings { - uint32_t video_bitrate; /* In bits/s */ + uint32_t video_bitrate; /* In kbits/s */ uint16_t video_width; /* In px */ uint16_t video_height; /* In px */