diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-09-16 13:12:45 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-09-16 13:12:45 +0000 |
commit | ca5456db7fa62a81d8effa20fb7547c16dd1d796 (patch) | |
tree | 174ff57195e014316aefee2eab08398e3713c8f4 /libavformat/segafilm.c | |
parent | 02f56bfcc3f596defccfa968a81372a2e21b2cfa (diff) | |
download | ffmpeg-ca5456db7fa62a81d8effa20fb7547c16dd1d796.tar.gz |
avformat/segafilm: use av_freep()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/segafilm.c')
-rw-r--r-- | libavformat/segafilm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c index 232a93117f..b685d49d9d 100644 --- a/libavformat/segafilm.c +++ b/libavformat/segafilm.c @@ -209,7 +209,7 @@ static int film_read_header(AVFormatContext *s) for (i = 0; i < film->sample_count; i++) { /* load the next sample record and transfer it to an internal struct */ if (avio_read(pb, scratch, 16) != 16) { - av_free(film->sample_table); + av_freep(&film->sample_table); return AVERROR(EIO); } film->sample_table[i].sample_offset = @@ -321,8 +321,8 @@ static int film_read_close(AVFormatContext *s) { FilmDemuxContext *film = s->priv_data; - av_free(film->sample_table); - av_free(film->stereo_buffer); + av_freep(&film->sample_table); + av_freep(&film->stereo_buffer); return 0; } |