aboutsummaryrefslogtreecommitdiffstats
path: root/src/codec_amr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec_amr.c')
-rw-r--r--src/codec_amr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/codec_amr.c b/src/codec_amr.c
index 2fa7a2f..df35b49 100644
--- a/src/codec_amr.c
+++ b/src/codec_amr.c
@@ -27,8 +27,7 @@
#ifdef HAVE_OPENCORE_AMRNB
-#include <stdlib.h>
-#include <stdio.h>
+#include <talloc.h>
#include <opencore-amrnb/interf_dec.h>
#include <opencore-amrnb/interf_enc.h>
@@ -44,7 +43,7 @@ codec_amr_init(void)
{
struct codec_amr_state *st;
- st = calloc(1, sizeof(*st));
+ st = talloc_zero(NULL, struct codec_amr_state);
if (!st)
return NULL;