diff options
Diffstat (limited to 'src/codec_amr.c')
-rw-r--r-- | src/codec_amr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/codec_amr.c b/src/codec_amr.c index a2787d7..9c96290 100644 --- a/src/codec_amr.c +++ b/src/codec_amr.c @@ -32,6 +32,9 @@ #include <opencore-amrnb/interf_dec.h> #include <opencore-amrnb/interf_enc.h> +/* Internal root talloc context */ +extern TALLOC_CTX *gapk_root_ctx; + struct codec_amr_state { void *encoder; void *decoder; @@ -43,7 +46,7 @@ codec_amr_init(void) { struct codec_amr_state *st; - st = talloc_zero(NULL, struct codec_amr_state); + st = talloc_zero(gapk_root_ctx, struct codec_amr_state); if (!st) return NULL; |