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/asf.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/asf.c')
-rw-r--r-- | libav/asf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libav/asf.c b/libav/asf.c index 178354fcbc..7cb9fca067 100644 --- a/libav/asf.c +++ b/libav/asf.c @@ -431,7 +431,7 @@ static int asf_write_header(AVFormatContext *s) asf->nb_packets = 0; if (asf_write_header1(s, 0, 50) < 0) { - free(asf); + av_free(asf); return -1; } @@ -615,7 +615,7 @@ static int asf_write_trailer(AVFormatContext *s) put_flush_packet(&s->pb); - free(asf); + av_free(asf); return 0; } @@ -869,10 +869,10 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) for(i=0;i<s->nb_streams;i++) { AVStream *st = s->streams[i]; if (st) - free(st->priv_data); - free(st); + av_free(st->priv_data); + av_free(st); } - free(asf); + av_free(asf); return -1; } @@ -1009,9 +1009,9 @@ static int asf_read_close(AVFormatContext *s) for(i=0;i<s->nb_streams;i++) { AVStream *st = s->streams[i]; - free(st->priv_data); + av_free(st->priv_data); } - free(asf); + av_free(asf); return 0; } |