Blob Blame History Raw
From 22baa75e02f2a4eba252da0dfa549670bfbad36f Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Tue, 20 Nov 2012 15:57:22 +0400
Subject: [PATCH 17/18] Allow building against external iLBC copy

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
 core/plug-in/ilbc/ilbc.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/core/plug-in/ilbc/ilbc.c b/core/plug-in/ilbc/ilbc.c
index 326576d..3adb1b0 100644
--- a/core/plug-in/ilbc/ilbc.c
+++ b/core/plug-in/ilbc/ilbc.c
@@ -54,6 +54,14 @@
 #define ILBC30  30 
 #define ILBC20  20
 
+#ifndef MIN_SAMPLE
+#define MIN_SAMPLE -32768
+#endif
+
+#ifndef MAX_SAMPLE
+#define MAX_SAMPLE 32767
+#endif
+
 static int iLBC_2_Pcm16_Ext( unsigned char* out_buf, unsigned char* in_buf, unsigned int size,
 			     unsigned int channels, unsigned int rate, long h_codec, int mode );
 
-- 
1.8.0