Module: sems
Branch: peterlemenkov/1.4.3-fedora
Commit: 22baa75e02f2a4eba252da0dfa549670bfbad36f
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=22baa75e02f2a4eba252da0dfa549670bfbad36f

Author: Peter Lemenkov <lemen...@gmail.com>
Committer: Peter Lemenkov <lemen...@gmail.com>
Date:   Tue Nov 20 15:57:22 2012 +0400

Allow building against external iLBC copy

Signed-off-by: Peter Lemenkov <lemen...@gmail.com>

---

 core/plug-in/ilbc/ilbc.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

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 );
 

_______________________________________________
Semsdev mailing list
Semsdev@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to