]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mp3dec_filter.c
string: Introduce arr_alloc().
[paraslash.git] / mp3dec_filter.c
index 9403a71d59907e2d4d91eeb6b9d5f2a32139438b..75b052755e22eb09a9abfc977217907eff2a6f63 100644 (file)
@@ -144,7 +144,7 @@ decode:
        }
        fn->min_iqs = 0;
        mad_synth_frame(&pmd->synth, &pmd->frame);
-       outbuffer = alloc(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]);