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/swf.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/swf.c')
-rw-r--r-- | libav/swf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libav/swf.c b/libav/swf.c index 27755a3969..092f1d72c6 100644 --- a/libav/swf.c +++ b/libav/swf.c @@ -196,7 +196,7 @@ static int swf_write_header(AVFormatContext *s) UINT8 buf1[256]; int i, width, height, rate; - swf = malloc(sizeof(SWFContext)); + swf = av_malloc(sizeof(SWFContext)); if (!swf) return -1; s->priv_data = swf; @@ -294,7 +294,7 @@ static int swf_write_header(AVFormatContext *s) break; default: /* not supported */ - free(swf); + av_free(swf); return -1; } if (audio_enc->channels == 2) @@ -414,7 +414,7 @@ static int swf_write_trailer(AVFormatContext *s) url_fseek(pb, swf->duration_pos, SEEK_SET); put_le16(pb, video_enc->frame_number); } - free(swf); + av_free(swf); return 0; } @@ -488,7 +488,7 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) st->codec.sample_rate = 44100; break; default: - free(st); + av_free(st); return -EIO; } st->codec.codec_type = CODEC_TYPE_AUDIO; |