X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=mp3dec_filter.c;h=bc8ccdaa99be724530372a03b71544abeece480b;hb=6d713abb12df82c1c1a5bbbeac5a5d67472d1ca1;hp=6a196f3a06c06a42ecca40fde56de3f0d3cf4926;hpb=5967ac5353739c3ff571dd12d4c6814fa8493ad8;p=paraslash.git diff --git a/mp3dec_filter.c b/mp3dec_filter.c index 6a196f3a..bc8ccdaa 100644 --- a/mp3dec_filter.c +++ b/mp3dec_filter.c @@ -144,7 +144,7 @@ decode: } fn->min_iqs = 0; mad_synth_frame(&pmd->synth, &pmd->frame); - outbuffer = para_malloc(pmd->synth.pcm.length * 2 * pmd->channels); + outbuffer = arr_alloc(pmd->synth.pcm.length, 2 * pmd->channels); loaded = 0; for (i = 0; i < pmd->synth.pcm.length; i++) { int sample = MAD_TO_SHORT(pmd->synth.pcm.samples[0][i]); @@ -166,7 +166,7 @@ err: static void mp3dec_open(struct filter_node *fn) { - struct private_mp3dec_data *pmd = para_calloc(sizeof(*pmd)); + struct private_mp3dec_data *pmd = zalloc(sizeof(*pmd)); fn->private_data = pmd; mad_stream_init(&pmd->stream);