diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-14 00:03:41 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-14 00:03:41 +0000 |
commit | 2005e0ae934a705462741233384650f159280d85 (patch) | |
tree | 3fae7e15e7805105e38317726c503ee66193b7d1 /rtp.c | |
parent | 86e61af35389cfff372b2504370c29bf3be30984 (diff) |
use existing sample size in frame instead of recalculating it (issue #5390)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6781 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-x | rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1231,7 +1231,7 @@ static int ast_rtp_raw_write(struct ast_rtp *rtp, struct ast_frame *f, int codec ms = calc_txstamp(rtp, &f->delivery); /* Default prediction */ if (f->subclass < AST_FORMAT_MAX_AUDIO) { - pred = rtp->lastts + ast_codec_get_samples(f); + pred = rtp->lastts + f->samples; /* Re-calculate last TS */ rtp->lastts = rtp->lastts + ms * 8; |