Blame sems-0017-Allow-building-against-external-iLBC-copy.patch
|
|
448b22f |
From 22baa75e02f2a4eba252da0dfa549670bfbad36f Mon Sep 17 00:00:00 2001
|
|
|
448b22f |
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
448b22f |
Date: Tue, 20 Nov 2012 15:57:22 +0400
|
|
|
448b22f |
Subject: [PATCH 17/18] Allow building against external iLBC copy
|
|
|
448b22f |
|
|
|
448b22f |
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
448b22f |
---
|
|
|
448b22f |
core/plug-in/ilbc/ilbc.c | 8 ++++++++
|
|
|
448b22f |
1 file changed, 8 insertions(+)
|
|
|
448b22f |
|
|
|
448b22f |
diff --git a/core/plug-in/ilbc/ilbc.c b/core/plug-in/ilbc/ilbc.c
|
|
|
448b22f |
index 326576d..3adb1b0 100644
|
|
|
448b22f |
--- a/core/plug-in/ilbc/ilbc.c
|
|
|
448b22f |
+++ b/core/plug-in/ilbc/ilbc.c
|
|
|
448b22f |
@@ -54,6 +54,14 @@
|
|
|
448b22f |
#define ILBC30 30
|
|
|
448b22f |
#define ILBC20 20
|
|
|
448b22f |
|
|
|
448b22f |
+#ifndef MIN_SAMPLE
|
|
|
448b22f |
+#define MIN_SAMPLE -32768
|
|
|
448b22f |
+#endif
|
|
|
448b22f |
+
|
|
|
448b22f |
+#ifndef MAX_SAMPLE
|
|
|
448b22f |
+#define MAX_SAMPLE 32767
|
|
|
448b22f |
+#endif
|
|
|
448b22f |
+
|
|
|
448b22f |
static int iLBC_2_Pcm16_Ext( unsigned char* out_buf, unsigned char* in_buf, unsigned int size,
|
|
|
448b22f |
unsigned int channels, unsigned int rate, long h_codec, int mode );
|
|
|
448b22f |
|
|
|
448b22f |
--
|
|
|
448b22f |
1.8.0
|
|
|
448b22f |
|