From 6000abfa89295801abb8525e6fe7e13dbcc36610 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Sat, 18 May 2002 23:03:29 +0000 Subject: removed useless header includes - use av memory functions Originally committed as revision 522 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/pcm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavcodec/pcm.c') diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 13cc978615..f7ecd80f2d 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -109,7 +109,7 @@ static int encode_init(AVCodecContext *avctx) switch(avctx->codec->id) { case CODEC_ID_PCM_ALAW: if (linear_to_alaw_ref == 0) { - linear_to_alaw = malloc(16384); + linear_to_alaw = av_malloc(16384); if (!linear_to_alaw) return -1; build_xlaw_table(linear_to_alaw, alaw2linear, 0xd5); @@ -118,7 +118,7 @@ static int encode_init(AVCodecContext *avctx) break; case CODEC_ID_PCM_MULAW: if (linear_to_ulaw_ref == 0) { - linear_to_ulaw = malloc(16384); + linear_to_ulaw = av_malloc(16384); if (!linear_to_ulaw) return -1; build_xlaw_table(linear_to_ulaw, ulaw2linear, 0xff); @@ -136,11 +136,11 @@ static int encode_close(AVCodecContext *avctx) switch(avctx->codec->id) { case CODEC_ID_PCM_ALAW: if (--linear_to_alaw_ref == 0) - free(linear_to_alaw); + av_free(linear_to_alaw); break; case CODEC_ID_PCM_MULAW: if (--linear_to_ulaw_ref == 0) - free(linear_to_ulaw); + av_free(linear_to_ulaw); break; default: /* nothing to free */ -- cgit v1.2.3