\r
encoding = (flags & SWITCH_CODEC_FLAG_ENCODE);\r
decoding = (flags & SWITCH_CODEC_FLAG_DECODE);\r
-\r
- if (!(encoding || decoding) || (!(context = switch_core_alloc(codec->memory_pool, sizeof(*context))))) {\r
+ \r
+ if (!(encoding || decoding) || (!(context = switch_core_alloc(codec->memory_pool, sizeof(struct g729_context))))) {\r
return SWITCH_STATUS_FALSE;\r
} else {\r
- memset(context, 0, sizeof(*context));\r
if (encoding) {\r
+ //init_coder is fucked if you comment it no more crash\r
g729_init_coder(&context->encoder_object, 0);\r
}\r
if (decoding) {\r