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/jpeg.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/jpeg.c')
-rw-r--r-- | libav/jpeg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libav/jpeg.c b/libav/jpeg.c index 94971d9f8f..732898252b 100644 --- a/libav/jpeg.c +++ b/libav/jpeg.c @@ -144,7 +144,7 @@ static int jpeg_write_packet(AVFormatContext *s1, int stream_index, static int jpeg_write_trailer(AVFormatContext *s1) { JpegContext *s = s1->priv_data; - free(s); + av_free(s); return 0; } @@ -167,7 +167,7 @@ static int jpeg_read_header(AVFormatContext *s1, AVFormatParameters *ap) s1->nb_streams = 1; st = av_mallocz(sizeof(AVStream)); if (!st) { - free(s); + av_free(s); return -ENOMEM; } s1->streams[0] = st; @@ -193,7 +193,7 @@ static int jpeg_read_header(AVFormatContext *s1, AVFormatParameters *ap) st->codec.frame_rate = ap->frame_rate; return 0; fail: - free(s); + av_free(s); return -EIO; } @@ -227,7 +227,7 @@ static int jpeg_read_packet(AVFormatContext *s1, AVPacket *pkt) static int jpeg_read_close(AVFormatContext *s1) { JpegContext *s = s1->priv_data; - free(s); + av_free(s); return 0; } |