summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2005-03-30 18:39:02 +0000
committerAlin Năstac <mrness@gentoo.org>2005-03-30 18:39:02 +0000
commit2b0379a0545d399cfa2c0a82c8c85458b4d1578f (patch)
tree8e261e66d66eddc7ae26ad23c04a6c167a149fd1 /net-libs/wvstreams/files
parentMarked stable on x86 and removed old ebuilds. (diff)
downloadgentoo-2-2b0379a0545d399cfa2c0a82c8c85458b4d1578f.tar.gz
gentoo-2-2b0379a0545d399cfa2c0a82c8c85458b4d1578f.tar.bz2
gentoo-2-2b0379a0545d399cfa2c0a82c8c85458b4d1578f.zip
fix for >=speex-1.0.3 (#87206)
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-libs/wvstreams/files')
-rw-r--r--net-libs/wvstreams/files/wvstreams-4.0.2-speex-const.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-libs/wvstreams/files/wvstreams-4.0.2-speex-const.patch b/net-libs/wvstreams/files/wvstreams-4.0.2-speex-const.patch
new file mode 100644
index 000000000000..b20e8d90bb59
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.0.2-speex-const.patch
@@ -0,0 +1,24 @@
+diff -Nru wvstreams-4.0.2.orig/oggspeex/wvoggspeex.cc wvstreams-4.0.2/oggspeex/wvoggspeex.cc
+--- wvstreams-4.0.2.orig/oggspeex/wvoggspeex.cc 2005-03-24 04:01:23.000000000 +0200
++++ wvstreams-4.0.2/oggspeex/wvoggspeex.cc 2005-03-30 21:23:57.357906840 +0300
+@@ -15,6 +15,10 @@
+
+ #define OGG_SPEEX_DECODER_BUF_SIZE 16384 // at most 16k at once
+
++#ifndef MAX_BYTES_PER_FRAME
++#define MAX_BYTES_PER_FRAME 2000
++#endif
++
+ /** Extracts a little endian integer from a buffer. */
+ static unsigned long int getint_le(WvBuf &inbuf)
+ {
+@@ -170,8 +174,7 @@
+ // generate stream header
+ ogg_packet header;
+ SpeexHeader spxheader;
+- SpeexMode *spxmode = speex_mode_list[mode()];
+- speex_init_header(&spxheader, samplingrate(), channels(), spxmode);
++ speex_init_header(&spxheader, samplingrate(), channels(), speex_mode_list[mode()]);
+ spxheader.vbr = vbr();
+ spxheader.bitrate = nominalbitrate();
+ spxheader.frames_per_packet = 1;