From: Mark Spencer Date: Sat, 18 Sep 2004 13:56:28 +0000 (+0000) Subject: LPC fix X-Git-Tag: 1.0.0~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b96abb803c29918e1514a55c0b600aecf1046450;p=thirdparty%2Fasterisk.git LPC fix git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3804 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/rtp.c b/rtp.c index 60951008b3..fff3deed0c 100755 --- a/rtp.c +++ b/rtp.c @@ -554,7 +554,7 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp) break; case AST_FORMAT_LPC10: rtp->f.samples = 22 * 8; - rtp->f.samples += (((char *)(f->data))[7] & 0x1) * 8; + rtp->f.samples += (((char *)(rtp->f.data))[7] & 0x1) * 8; break; default: ast_log(LOG_NOTICE, "Unable to calculate samples for format %s\n", ast_getformatname(rtp->f.subclass));