Group :: Development/C++
RPM: wvstreams
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: wvstreams-4.0.2-alt-oggspeex-max_bpf.patch
Download
Download
--- wvstreams-4.0.2/oggspeex/wvspeex.cc- 2005-03-24 05:01:23 +0300
+++ wvstreams-4.0.2/oggspeex/wvspeex.cc 2005-04-30 00:03:43 +0400
@@ -11,6 +11,10 @@
#include <speex.h>
#include <speex_header.h>
+#ifndef MAX_BYTES_PER_FRAME
+#define MAX_BYTES_PER_FRAME 2000
+#endif
+
/**
* Returns the SpeexMode to use for a given sampling rate.
* "modeid" is the suggested mode
--- wvstreams-4.0.2/oggspeex/wvoggspeex.cc- 2005-03-24 05:01:23 +0300
+++ wvstreams-4.0.2/oggspeex/wvoggspeex.cc 2005-04-30 00:03:43 +0400
@@ -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)
{