summaryrefslogtreecommitdiff
path: root/rtp.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-10-14 00:03:41 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-10-14 00:03:41 +0000
commit1e21c5642696a7c9d7182f50e74051c1a1efec95 (patch)
tree3fae7e15e7805105e38317726c503ee66193b7d1 /rtp.c
parentba7386ebeddd099bef0ed6f133dd1cbc75c82292 (diff)
use existing sample size in frame instead of recalculating it (issue #5390)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtp.c b/rtp.c
index 78cdfb09a..468445e5f 100755
--- a/rtp.c
+++ b/rtp.c
@@ -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;