diff options
Diffstat (limited to 'apps/codecs/libfaad/drc.c')
-rw-r--r-- | apps/codecs/libfaad/drc.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/codecs/libfaad/drc.c b/apps/codecs/libfaad/drc.c index 7530d2d053..6e081489aa 100644 --- a/apps/codecs/libfaad/drc.c +++ b/apps/codecs/libfaad/drc.c | |||
@@ -33,9 +33,12 @@ | |||
33 | #include "syntax.h" | 33 | #include "syntax.h" |
34 | #include "drc.h" | 34 | #include "drc.h" |
35 | 35 | ||
36 | /* static variables */ | ||
37 | static drc_info s_drc_info; | ||
38 | |||
36 | drc_info *drc_init(real_t cut, real_t boost) | 39 | drc_info *drc_init(real_t cut, real_t boost) |
37 | { | 40 | { |
38 | drc_info *drc = (drc_info*)faad_malloc(sizeof(drc_info)); | 41 | drc_info *drc = &s_drc_info; |
39 | memset(drc, 0, sizeof(drc_info)); | 42 | memset(drc, 0, sizeof(drc_info)); |
40 | 43 | ||
41 | drc->ctrl1 = cut; | 44 | drc->ctrl1 = cut; |
@@ -49,11 +52,6 @@ drc_info *drc_init(real_t cut, real_t boost) | |||
49 | return drc; | 52 | return drc; |
50 | } | 53 | } |
51 | 54 | ||
52 | void drc_end(drc_info *drc) | ||
53 | { | ||
54 | if (drc) faad_free(drc); | ||
55 | } | ||
56 | |||
57 | #ifdef FIXED_POINT | 55 | #ifdef FIXED_POINT |
58 | static real_t drc_pow2_table[] = | 56 | static real_t drc_pow2_table[] = |
59 | { | 57 | { |