Module: sems Branch: 1.5 Commit: 37e0e53d09b05c6ef017969921de3d2e50274d5e URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=37e0e53d09b05c6ef017969921de3d2e50274d5e
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 76e6a4f..68a5b2e 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