From owner-svn-ports-all@freebsd.org Fri Jun 30 15:10:28 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 089CED938F2; Fri, 30 Jun 2017 15:10:28 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CF27471294; Fri, 30 Jun 2017 15:10:27 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v5UFARM5067087; Fri, 30 Jun 2017 15:10:27 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v5UFAQ1W067083; Fri, 30 Jun 2017 15:10:26 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <201706301510.v5UFAQ1W067083@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Fri, 30 Jun 2017 15:10:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r444761 - in head: audio/bcg729 net/asterisk-g72x net/asterisk-g72x/files X-SVN-Group: ports-head X-SVN-Commit-Author: madpilot X-SVN-Commit-Paths: in head: audio/bcg729 net/asterisk-g72x net/asterisk-g72x/files X-SVN-Commit-Revision: 444761 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 15:10:28 -0000 Author: madpilot Date: Fri Jun 30 15:10:26 2017 New Revision: 444761 URL: https://svnweb.freebsd.org/changeset/ports/444761 Log: - Update audio/bcg729 to 1.0.2 - Apply upstream patch to net/asterisk-g72x diue to API changes in bcg729 Added: head/net/asterisk-g72x/files/ head/net/asterisk-g72x/files/patch-codec__g72x.c (contents, props changed) Modified: head/audio/bcg729/Makefile head/audio/bcg729/distinfo head/net/asterisk-g72x/Makefile Modified: head/audio/bcg729/Makefile ============================================================================== --- head/audio/bcg729/Makefile Fri Jun 30 15:06:10 2017 (r444760) +++ head/audio/bcg729/Makefile Fri Jun 30 15:10:26 2017 (r444761) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= bcg729 -PORTVERSION= 1.0.1 +PORTVERSION= 1.0.2 CATEGORIES= audio MASTER_SITES= SAVANNAH/linphone/plugins/sources Modified: head/audio/bcg729/distinfo ============================================================================== --- head/audio/bcg729/distinfo Fri Jun 30 15:06:10 2017 (r444760) +++ head/audio/bcg729/distinfo Fri Jun 30 15:10:26 2017 (r444761) @@ -1,2 +1,3 @@ -SHA256 (bcg729-1.0.1.tar.gz) = 15f45abe2568b608984fe5f74aa8916d01a51cb26dcd559423d886d68ebe04ef -SIZE (bcg729-1.0.1.tar.gz) = 473172 +TIMESTAMP = 1498733816 +SHA256 (bcg729-1.0.2.tar.gz) = 77c923edc57a53014da5f31788b63efbabfc7277c06deaeada06574628e4b03f +SIZE (bcg729-1.0.2.tar.gz) = 474851 Modified: head/net/asterisk-g72x/Makefile ============================================================================== --- head/net/asterisk-g72x/Makefile Fri Jun 30 15:06:10 2017 (r444760) +++ head/net/asterisk-g72x/Makefile Fri Jun 30 15:10:26 2017 (r444761) @@ -2,6 +2,7 @@ PORTNAME= asterisk-g72x PORTVERSION= 1.4 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://asterisk.hosting.lv/src/ Added: head/net/asterisk-g72x/files/patch-codec__g72x.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/asterisk-g72x/files/patch-codec__g72x.c Fri Jun 30 15:10:26 2017 (r444761) @@ -0,0 +1,41 @@ +--- codec_g72x.c.orig 2016-10-05 19:27:27 UTC ++++ codec_g72x.c +@@ -215,7 +215,7 @@ static int lintog72x_new(struct ast_trans_pvt *pvt) + apiG723Encoder_Init(state->coder, G723Encode_DefaultMode); + #endif + #else +- state->coder = initBcg729EncoderChannel(); ++ state->coder = initBcg729EncoderChannel(0); + #endif + return 0; + } +@@ -320,7 +320,7 @@ static int g72xtolin_framein(struct ast_trans_pvt *pvt + #if !G72X_BCG729 + apiG729Decode(state->coder, (unsigned char *)lost_frame, g729_frame_type(0), dst + pvt->samples); + #else +- bcg729Decoder(state->coder, (unsigned char *)lost_frame, 1, dst + pvt->samples); ++ bcg729Decoder(state->coder, (unsigned char *)lost_frame, 0, 1, 0, 0, dst + pvt->samples); + #endif + pvt->samples += G729_SAMPLES; + pvt->datalen += 2 * G729_SAMPLES; /* 2 bytes/sample */ +@@ -339,7 +339,7 @@ static int g72xtolin_framein(struct ast_trans_pvt *pvt + #if !G72X_BCG729 + apiG729Decode(state->coder, (unsigned char *)f->FRAME_DATA + x, g729_frame_type(framesize), dst + pvt->samples); + #elif G72X_9 +- bcg729Decoder(state->coder, (unsigned char *)f->FRAME_DATA + x, 0, dst + pvt->samples); ++ bcg729Decoder(state->coder, (unsigned char *)f->FRAME_DATA + x, 0, 0, framesize == 2 ? 1 : 0, 0, dst + pvt->samples); + #endif + pvt->samples += G729_SAMPLES; + pvt->datalen += 2*G729_SAMPLES; +@@ -447,8 +447,9 @@ static struct ast_frame *lintog72x_frameout(struct ast + datalen += (g723_sendrate == G723_RATE_63) ? 24 : 20; + #endif + #else +- bcg729Encoder(state->coder, state->buf + samples, (unsigned char *)(pvt->OUTBUF_G72X) + datalen); +- datalen += G729_FRAME_LEN; ++ uint8_t framesize; ++ bcg729Encoder(state->coder, state->buf + samples, (unsigned char *)(pvt->OUTBUF_G72X) + datalen, &framesize); ++ datalen += framesize; // VAD is disabled, it's G729_FRAME_LEN + #endif + samples += G72X_SAMPLES; + pvt->samples -= G72X_SAMPLES;