diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2009-11-14 16:49:26 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2009-11-14 16:49:26 +0000 |
commit | bb61c0687a61f68fa824cfc3bde2d0c49267d0e0 (patch) | |
tree | 6f39911658fafcc7f5fed038bce3fbd807e0f9d8 /net/opal3 | |
parent | 69ac61359e18a5165b583f0ad8c908471d29a61e (diff) | |
download | ports-bb61c0687a61f68fa824cfc3bde2d0c49267d0e0.tar.gz ports-bb61c0687a61f68fa824cfc3bde2d0c49267d0e0.zip |
Notes
Diffstat (limited to 'net/opal3')
-rw-r--r-- | net/opal3/Makefile | 2 | ||||
-rw-r--r-- | net/opal3/files/patch-plugins-audio-celt-celtcodec.c | 41 |
2 files changed, 42 insertions, 1 deletions
diff --git a/net/opal3/Makefile b/net/opal3/Makefile index e94c4bbedfef..d5ff98f5207f 100644 --- a/net/opal3/Makefile +++ b/net/opal3/Makefile @@ -7,7 +7,7 @@ PORTNAME= opal3 PORTVERSION= 3.6.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= SF/opalvoip/v3.6%20Lalande/Stable%205 DISTNAME= opal-${PORTVERSION} diff --git a/net/opal3/files/patch-plugins-audio-celt-celtcodec.c b/net/opal3/files/patch-plugins-audio-celt-celtcodec.c new file mode 100644 index 000000000000..9094b5b10118 --- /dev/null +++ b/net/opal3/files/patch-plugins-audio-celt-celtcodec.c @@ -0,0 +1,41 @@ +--- plugins/audio/celt/celtcodec.c.orig 2009-09-22 02:57:45.000000000 +0200 ++++ plugins/audio/celt/celtcodec.c 2009-11-13 22:00:39.000000000 +0100 +@@ -52,7 +52,7 @@ static int init_mode(CELTContext *celt, + { + int error = 0; + +- celt->mode = celt_mode_create(codec->sampleRate, 1, codec->parm.audio.samplesPerFrame, &error); ++ celt->mode = celt_mode_create(codec->sampleRate, codec->parm.audio.samplesPerFrame, &error); + if (celt->mode == NULL) { + return FALSE; + } +@@ -74,7 +74,7 @@ static void * celt_create_encoder(const + return NULL; + } + +- celt->encoder_state = celt_encoder_create(celt->mode); ++ celt->encoder_state = celt_encoder_create(celt->mode, 1, NULL); + if (celt->encoder_state == NULL ) { + celt_mode_destroy(celt->mode); + free(celt); +@@ -96,7 +96,7 @@ static void * celt_create_decoder(const + return NULL; + } + +- celt->decoder_state = celt_decoder_create(celt->mode); ++ celt->decoder_state = celt_decoder_create(celt->mode, 1, NULL); + if (celt->decoder_state == NULL ) { + celt_mode_destroy(celt->mode); + free(celt); +@@ -143,9 +143,9 @@ static int celt_codec_encoder(const stru + return FALSE; + + #ifdef HAVE_CELT_0_5_0_OR_LATER +- byteCount = celt_encode(celt->encoder_state, (celt_int16_t *)fromPtr, NULL, (char *)toPtr, celt->bytes_per_packet); ++ byteCount = celt_encode(celt->encoder_state, (celt_int16 *)fromPtr, NULL, (char *)toPtr, celt->bytes_per_packet); + #else +- byteCount = celt_encode(celt->encoder_state, (celt_int16_t *)fromPtr, (char *)toPtr, celt->bytes_per_packet); ++ byteCount = celt_encode(celt->encoder_state, (celt_int16 *)fromPtr, (char *)toPtr, celt->bytes_per_packet); + #endif + if (byteCount < 0) { + return 0; |