#define BUFFER_SIZE 8096 /* size for the translation buffers */
+#define BUF_SHIFT 5
static ast_mutex_t localuser_lock = AST_MUTEX_INITIALIZER;
static int localusecnt = 0;
@@ -77,21 +78,48 @@
* Sets the index to the step size table for the next encode.
*/
@@ -158,6 +186,8 @@
unsigned char outbuf[BUFFER_SIZE]; /* Encoded ADPCM, two nibbles to a word */
short ssindex;
short signal;
+ unsigned char zero_count;
+ unsigned char next_flag;
int tail;
};
@@ -245,13 +275,15 @@
short signal;
short ssindex;
unsigned char *b;
+ unsigned char zero_count;
+ unsigned char next_flag;
- if (f->datalen < 3) {
- ast_log(LOG_WARNING, "Didn't have at least three bytes of input\n");
+ if (f->datalen < BUF_SHIFT) {
+ ast_log(LOG_WARNING, "Didn't have at least %d bytes of input\n", BUF_SHIFT);
return -1;
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum