mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
0becafd272
Fixes #572. As discussed in the issue, there's a risk that toxcore may not hold the maximum bitrates libvpx supports, if toxcore insists on using integer type. I initially proposed to have another flag in set(), so that we can use unsigned type instead. iphydf came up with a better solution, that is splitting the original functions, one for audio, one for video. Now, we could safely replace int32_t with uint32_t. Also: clean video_bit_rate_invalid() Though this is not a part of issue #572, as it's used in the toxav_bit_rate_set(), i cleaned the code. As mannol said, there should be a check. Uint32_t is large enough to hold the maximum bitrates libvpx supports, but user may pass a value larger than uint while smaller than uint32_t. Thanks to the reminding from nurupo, it's no longer a stub function. Bitrate error enums are shared for both audio and video https://github.com/TokTok/c-toxcore/pull/578#issuecomment-360095609, just as iphydf said. |
||
---|---|---|
.. | ||
audio.c | ||
audio.h | ||
BUILD | ||
bwcontroller.c | ||
bwcontroller.h | ||
groupav.c | ||
groupav.h | ||
Makefile.inc | ||
msi.c | ||
msi.h | ||
ring_buffer.c | ||
ring_buffer.h | ||
rtp.c | ||
rtp.h | ||
toxav_old.c | ||
toxav.api.h | ||
toxav.c | ||
toxav.h | ||
video.c | ||
video.h |