Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid bit rate prevents call #375

Closed
zoff99 opened this issue Jan 2, 2017 · 4 comments
Closed

Invalid bit rate prevents call #375

zoff99 opened this issue Jan 2, 2017 · 4 comments
Labels
P1 High priority
Milestone

Comments

@zoff99
Copy link

zoff99 commented Jan 2, 2017

https://github.com/TokTok/c-toxcore/blob/master/toxav/toxav.c#L273

if i call toxav_call to initiate a call, and i do not specify a valid audio bit rate, then it will not even ring.
it will fail with TOXAV_ERR_CALL_INVALID_BIT_RATE

video bit rate checking is totally disabled: https://github.com/TokTok/c-toxcore/blob/master/toxav/toxav.c#L1016

is that ok? seems strange.
i think i should be able to make a call without audio (audio_bit_rate=0)

@GrayHatter GrayHatter self-assigned this Jan 2, 2017
@GrayHatter
Copy link

You're trying to start a call without audio or video... https://github.com/TokTok/c-toxcore/blob/master/toxav/toxav.h#L229

Can you describe a case in which anyone would need to do that?

@GrayHatter GrayHatter added this to the v0.1.3 milestone Jan 2, 2017
@zoff99
Copy link
Author

zoff99 commented Jan 3, 2017

when you dont have audio. then a bitrate > 0 would in fact be wrong.
also i don't see why this should be checked at this point.
why is it not allowed to ring the other person, without bitrate?

and here also is (at least) a documentation bug:
https://github.com/TokTok/c-toxcore/blob/master/toxav/toxav.h#L229
if you set to 0 to disable toxav_call, will fail with TOXAV_ERR_CALL_INVALID_BIT_RATE

@GrayHatter
Copy link

Right, you can start a toxav call, with audio and/or video. You can not start a toxav call with audio and/or/neither video.

When would you want to start a toxav call without audio, and without video?

@zoff99
Copy link
Author

zoff99 commented Jan 3, 2017

https://github.com/TokTok/c-toxcore/blob/master/toxav/toxav.h#L229
says it should work. so either the documentation is wrong or the implementation.

nobody knows what valid bitrates are. there should be a TOXAV_BITRATE_AUDO_MINIMUM
or something like that. otherwise everybody has to look at the source what is valid.
and if it changes client apps will not know it

@iphydf iphydf modified the milestones: v0.1.4, v0.1.3 Jan 4, 2017
@iphydf iphydf changed the title invalid bit rate prevents call Invalid bit rate prevents call Jan 6, 2017
@iphydf iphydf modified the milestones: v0.1.4, v0.1.5 Jan 8, 2017
@iphydf iphydf added the P1 High priority label Jan 12, 2017
@iphydf iphydf added this to the v0.2.x milestone Jul 16, 2018
@zoff99 zoff99 closed this as completed Nov 4, 2018
@robinlinden robinlinden modified the milestones: v0.2.x, v0.2.9 Jan 3, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High priority
Projects
None yet
Development

No branches or pull requests

4 participants