Displaying 1 result from an estimated 1 matches for "samplesperbyte".
2003 Jul 08
0
Patch to fix some segfaults in Asterisk
...edata + AST_FRIENDLY_OFFSET;
- s->f.offset = AST_FRIENDLY_OFFSET;
+ /*s->f.data = s->framedata + AST_FRIENDLY_OFFSET;*/
+ s->f.data = s->framedata;
+ /*s->f.offset = AST_FRIENDLY_OFFSET;*/
+ s->f.offset = 0;
s->f.datalen = s->size;
s->f.samples = s->size * s->samplesperbyte;
/* Fill Data */
@@ -141,7 +143,8 @@
void ast_smoother_free(struct ast_smoother *s)
{
- free(s);
+ if (s != NULL)
+ free(s);
}
static struct ast_frame *ast_frame_header_new(void)
Index: apps/Makefile
===================================================================
RCS file: /usr/cvsro...