Browse Source

use av_malloc instead of malloc

Originally committed as revision 1412 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Fabrice Bellard 23 years ago
parent
commit
d9823692f5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/mdct.c

+ 2
- 2
libavcodec/mdct.c View File

@@ -31,10 +31,10 @@ int ff_mdct_init(MDCTContext *s, int nbits, int inverse)
s->nbits = nbits;
s->n = n;
n4 = n >> 2;
s->tcos = malloc(n4 * sizeof(FFTSample));
s->tcos = av_malloc(n4 * sizeof(FFTSample));
if (!s->tcos)
goto fail;
s->tsin = malloc(n4 * sizeof(FFTSample));
s->tsin = av_malloc(n4 * sizeof(FFTSample));
if (!s->tsin)
goto fail;



Loading…
Cancel
Save