[xiph-commits] r7208 - trunk/speex/src
conrad at dactyl.lonelymoon.com
conrad
Tue Jul 20 23:34:38 PDT 2004
Author: conrad
Date: Tue Jul 20 23:34:38 2004
New Revision: 7208
Modified:
trunk/speex/src/speexdec.c
Log:
add noglobals API support to speexdec.c
Modified: trunk/speex/src/speexdec.c
===================================================================
--- trunk/speex/src/speexdec.c 2004-07-21 06:25:52 UTC (rev 7207)
+++ trunk/speex/src/speexdec.c 2004-07-21 06:34:37 UTC (rev 7208)
@@ -86,6 +86,10 @@
#include <speex/speex_callbacks.h>
#include "misc.h"
+#ifdef DISABLE_GLOBAL_POINTERS
+#include <speex/speex_noglobals.h>
+#endif
+
#define MAX_FRAME_SIZE 2000
#define readint(buf, base) (((buf[base+3]<<24)&0xff000000)| \
@@ -323,7 +327,12 @@
modeID = header->mode;
if (forceMode!=-1)
modeID = forceMode;
+
+#ifdef DISABLE_GLOBAL_POINTERS
+ mode = speex_mode_new (modeID);
+#else
mode = speex_mode_list[modeID];
+#endif
if (header->speex_version_id > 1)
{
More information about the commits
mailing list