aboutsummaryrefslogtreecommitdiff
path: root/net/opal3/files
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2009-11-14 16:49:26 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2009-11-14 16:49:26 +0000
commitbb61c0687a61f68fa824cfc3bde2d0c49267d0e0 (patch)
tree6f39911658fafcc7f5fed038bce3fbd807e0f9d8 /net/opal3/files
parent69ac61359e18a5165b583f0ad8c908471d29a61e (diff)
downloadports-bb61c0687a61f68fa824cfc3bde2d0c49267d0e0.tar.gz
ports-bb61c0687a61f68fa824cfc3bde2d0c49267d0e0.zip
Fix build after audio/celt update.
Approved by: portmgr (pav)
Notes
Notes: svn path=/head/; revision=244264
Diffstat (limited to 'net/opal3/files')
-rw-r--r--net/opal3/files/patch-plugins-audio-celt-celtcodec.c41
1 files changed, 41 insertions, 0 deletions
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;