Index: head/audio/bcg729/Makefile =================================================================== --- head/audio/bcg729/Makefile (revision 444760) +++ head/audio/bcg729/Makefile (revision 444761) @@ -1,21 +1,21 @@ # Created by: sobomax # $FreeBSD$ PORTNAME= bcg729 -PORTVERSION= 1.0.1 +PORTVERSION= 1.0.2 CATEGORIES= audio MASTER_SITES= SAVANNAH/linphone/plugins/sources MAINTAINER= madpilot@FreeBSD.org COMMENT= Software G729A encoder and decoder library written in C LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-msplugin --disable-strict INSTALL_TARGET= install-strip USES= libtool pathfix pkgconfig USE_LDCONFIG= yes .include Index: head/audio/bcg729/distinfo =================================================================== --- head/audio/bcg729/distinfo (revision 444760) +++ head/audio/bcg729/distinfo (revision 444761) @@ -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 Index: head/net/asterisk-g72x/Makefile =================================================================== --- head/net/asterisk-g72x/Makefile (revision 444760) +++ head/net/asterisk-g72x/Makefile (revision 444761) @@ -1,44 +1,45 @@ # $FreeBSD$ PORTNAME= asterisk-g72x PORTVERSION= 1.4 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://asterisk.hosting.lv/src/ MAINTAINER= madpilot@FreeBSD.org COMMENT= G.729 codec for Asterisk PBX LIB_DEPENDS= libbcg729.so:audio/bcg729 GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-bcg729 USES= autoreconf compiler libtool localbase tar:bzip2 NO_OPTIONS_SORT= yes PLIST_FILES= lib/asterisk/modules/codec_g729.so OPTIONS_SINGLE= ASTVER OPTIONS_SINGLE_ASTVER= ASTERISK11 ASTERISK13 OPTIONS_DEFAULT= ASTERISK13 ASTERISK11_DESC= Depend on Asterisk 11 ASTERISK13_DESC= Depend on Asterisk 13 ASTERISK11_BUILD_DEPENDS= asterisk:net/asterisk11 ASTERISK11_RUN_DEPENDS= asterisk:net/asterisk11 ASTERISK11_CONFIGURE_ON= --with-asterisk100 ASTERISK13_BUILD_DEPENDS= asterisk:net/asterisk13 ASTERISK13_RUN_DEPENDS= asterisk:net/asterisk13 ASTERISK13_CONFIGURE_ON= --with-asterisk130 .include .if ${CHOSEN_COMPILER_TYPE} == clang CFLAGS+= -fblocks .endif post-build: ${STRIP_CMD} ${WRKSRC}/.libs/codec_g729.so .include Index: head/net/asterisk-g72x/files/patch-codec__g72x.c =================================================================== --- head/net/asterisk-g72x/files/patch-codec__g72x.c (nonexistent) +++ head/net/asterisk-g72x/files/patch-codec__g72x.c (revision 444761) @@ -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; Property changes on: head/net/asterisk-g72x/files/patch-codec__g72x.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property