aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-28 22:08:24 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-28 22:08:24 +0000
commit6eb5022d5ee692a87fd65300523fe4861bc85efe (patch)
tree839f4fe321c0fec43176baee818f8299a1bba4f5 /channels
parentacd8b8111f878f85fbf9fa0a3c3d7a74e04013af (diff)
Reduce complexity of check for f->samples / 8 not being 0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4910 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 2584fe8f9..c1ad88335 100755
--- 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)