aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pcm.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-05-18 23:03:29 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-05-18 23:03:29 +0000
commit6000abfa89295801abb8525e6fe7e13dbcc36610 (patch)
tree3ebb212898b99c09eb1dd3a1714cc5c8f617bff3 /libavcodec/pcm.c
parent4cc281d9d970b0b004f20ee76cae427f374bd082 (diff)
downloadffmpeg-6000abfa89295801abb8525e6fe7e13dbcc36610.tar.gz
removed useless header includes - use av memory functions
Originally committed as revision 522 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r--libavcodec/pcm.c8
1 files changed, 4 insertions, 4 deletions
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 */