summaryrefslogtreecommitdiff
path: root/contrib/a52dec/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/a52dec/parse.c')
-rw-r--r--contrib/a52dec/parse.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/a52dec/parse.c b/contrib/a52dec/parse.c
index 7aba1d809..82e29121b 100644
--- a/contrib/a52dec/parse.c
+++ b/contrib/a52dec/parse.c
@@ -32,6 +32,7 @@
#include "bitstream.h"
#include "tables.h"
#include <xine/xineutils.h>
+#include <mem.h>
typedef struct {
sample_t q1[2];
@@ -53,15 +54,13 @@ a52_state_t * a52_init (uint32_t mm_accel)
if (state == NULL)
return NULL;
- state->samples = xine_xmalloc_aligned (16, 256 * 12 * sizeof (sample_t), &state->samples_base);
+ state->samples_base = state->samples = av_mallocz (256 * 12 * sizeof (sample_t));
+
if (state->samples == NULL) {
free (state);
return NULL;
}
- for (i = 0; i < 256 * 12; i++)
- state->samples[i] = 0;
-
state->downmixed = 1;
state->lfsr_state = 1;