Mercurial > audlegacy
diff Plugins/Input/wma/libffwma/futils.c @ 1398:1ddaf20ab50e trunk
[svn] AltiVec support for WMA, by Luca "lu_zero" Barbato from Gentoo.
author | chainsaw |
---|---|
date | Thu, 13 Jul 2006 16:01:57 -0700 |
parents | d539e5c5f730 |
children | f12d7e208b43 |
line wrap: on
line diff
--- a/Plugins/Input/wma/libffwma/futils.c Wed Jul 12 21:16:35 2006 -0700 +++ b/Plugins/Input/wma/libffwma/futils.c Thu Jul 13 16:01:57 2006 -0700 @@ -146,7 +146,7 @@ */ int av_new_packet(AVPacket *pkt, int size) { - unsigned char *data = malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); + unsigned char *data = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); if (!data) return AVERROR_NOMEM; memset(data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); @@ -166,7 +166,7 @@ uint8_t *data; /* we duplicate the packet and don't forget to put the padding again */ - data = malloc(pkt->size + FF_INPUT_BUFFER_PADDING_SIZE); + data = av_malloc(pkt->size + FF_INPUT_BUFFER_PADDING_SIZE); if (!data) { return AVERROR_NOMEM; } @@ -182,7 +182,7 @@ int fifo_init(FifoBuffer *f, int size) { - f->buffer = malloc(size); + f->buffer = av_malloc(size); if (!f->buffer) return -1; f->end = f->buffer + size; @@ -1300,7 +1300,7 @@ return ret; switch(st->codec.codec_type) { case CODEC_TYPE_AUDIO: - samples = malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE); + samples = av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE); if (!samples) goto fail;