openbsd-ports/net/opal/patches/patch-plugins_audio_celt_celtcodec_c

25 lines
1003 B
Plaintext
Raw Normal View History

2012-04-20 09:28:50 -04:00
$OpenBSD: patch-plugins_audio_celt_celtcodec_c,v 1.1 2012/04/20 13:28:50 dcoppa Exp $
Fix with celt>=0.11
--- plugins/audio/celt/celtcodec.c.orig Wed Apr 18 13:45:31 2012
+++ plugins/audio/celt/celtcodec.c Wed Apr 18 13:46:04 2012
@@ -83,7 +83,7 @@ static void * celt_create_encoder(const struct PluginC
#if CELT_VERSION<700
celt->encoder_state = celt_encoder_create(celt->mode);
#else
- celt->encoder_state = celt_encoder_create(celt->mode, 1, NULL);
+ celt->encoder_state = celt_encoder_create_custom(celt->mode, 1, NULL);
#endif
if (celt->encoder_state == NULL ) {
celt_mode_destroy(celt->mode);
@@ -109,7 +109,7 @@ static void * celt_create_decoder(const struct PluginC
#if CELT_VERSION<700
celt->decoder_state = celt_decoder_create(celt->mode);
#else
- celt->decoder_state = celt_decoder_create(celt->mode, 1, NULL);
+ celt->decoder_state = celt_decoder_create_custom(celt->mode, 1, NULL);
#endif
if (celt->decoder_state == NULL ) {
celt_mode_destroy(celt->mode);