Commit d9823692 authored by Fabrice Bellard's avatar Fabrice Bellard

use av_malloc instead of malloc

Originally committed as revision 1412 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ea0f841a
...@@ -31,10 +31,10 @@ int ff_mdct_init(MDCTContext *s, int nbits, int inverse) ...@@ -31,10 +31,10 @@ int ff_mdct_init(MDCTContext *s, int nbits, int inverse)
s->nbits = nbits; s->nbits = nbits;
s->n = n; s->n = n;
n4 = n >> 2; n4 = n >> 2;
s->tcos = malloc(n4 * sizeof(FFTSample)); s->tcos = av_malloc(n4 * sizeof(FFTSample));
if (!s->tcos) if (!s->tcos)
goto fail; goto fail;
s->tsin = malloc(n4 * sizeof(FFTSample)); s->tsin = av_malloc(n4 * sizeof(FFTSample));
if (!s->tsin) if (!s->tsin)
goto fail; goto fail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment