projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e158e3
)
Reduce complexity of check for f->samples / 8 not being 0
author
Mark Spencer
<markster@digium.com>
Fri, 28 Jan 2005 22:08:24 +0000
(22:08 +0000)
committer
Mark Spencer
<markster@digium.com>
Fri, 28 Jan 2005 22:08:24 +0000
(22:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4910
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_iax2.c
patch
|
blob
|
history
diff --git
a/channels/chan_iax2.c
b/channels/chan_iax2.c
index
2584fe8
..
c1ad883
100755
(executable)
--- a/
channels/chan_iax2.c
+++ b/
channels/chan_iax2.c
@@
-3027,7
+3027,7
@@
static unsigned int calc_timestamp(struct chan_iax2_pvt *p, unsigned int ts, str
* next multiple of frame size (so our
* silent periods are multiples of
* frame size too) */
- if (f->samples / 8) /* check to make sure we dont core dump */
+ if (f->samples >= 8) /* check to make sure we dont core dump */
{
int diff = ms % (f->samples / 8);
if (diff)