Line 241 in outqueue.cpp produces division-by-zero exceptions for RTP clock rates < 1000 because "(rate/1000ul)" evaluates to 0 for rates < 1000. I modified the original line

send.tv_usec = (1000ul*rem) / (rate/1000ul);

to

send.tv_usec = 1000000ul*(rem/rate);

which fixes the bug. If you ever need clock rates below 1000 you'll have to fix this bug manually until it is fixed by the ccRTP maintainers in a future release.

Regards
Jonas


_______________________________________________
Ccrtp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/ccrtp-devel

Reply via email to