diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2002-05-18 23:11:09 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2002-05-18 23:11:09 +0000 |
commit | 1ea4f593658c8b161a0a725252058b49c16a6b29 (patch) | |
tree | 5bf96a2a7242b8a0c227a196a3368188a77f9d8e /libav/wav.c | |
parent | 065422677a17ddb3d84a3b85b5064eb7df7e2c8a (diff) | |
download | ffmpeg-1ea4f593658c8b161a0a725252058b49c16a6b29.tar.gz |
use av memory handling functions
Originally committed as revision 528 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/wav.c')
-rw-r--r-- | libav/wav.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libav/wav.c b/libav/wav.c index 6fcd4d7077..a50d6f86f3 100644 --- a/libav/wav.c +++ b/libav/wav.c @@ -114,7 +114,7 @@ static int wav_write_header(AVFormatContext *s) ByteIOContext *pb = &s->pb; offset_t fmt; - wav = malloc(sizeof(WAVContext)); + wav = av_malloc(sizeof(WAVContext)); if (!wav) return -1; memset(wav, 0, sizeof(WAVContext)); @@ -127,7 +127,7 @@ static int wav_write_header(AVFormatContext *s) /* format header */ fmt = start_tag(pb, "fmt "); if (put_wav_header(pb, &s->streams[0]->codec) < 0) { - free(wav); + av_free(wav); return -1; } end_tag(pb, fmt); @@ -166,7 +166,7 @@ static int wav_write_trailer(AVFormatContext *s) put_flush_packet(pb); } - free(wav); + av_free(wav); return 0; } @@ -233,7 +233,7 @@ static int wav_read_header(AVFormatContext *s, return -1; /* now we are ready: build format streams */ - st = malloc(sizeof(AVStream)); + st = av_malloc(sizeof(AVStream)); if (!st) return -1; s->nb_streams = 1; |