Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-09-16 17:12:45 +0400
committerPaul B Mahol <onemda@gmail.com>2013-09-16 17:12:45 +0400
commitca5456db7fa62a81d8effa20fb7547c16dd1d796 (patch)
tree174ff57195e014316aefee2eab08398e3713c8f4 /libavformat/segafilm.c
parent02f56bfcc3f596defccfa968a81372a2e21b2cfa (diff)
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.c6
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;
}