[FFmpeg-cvslog] avformat/segafilm: use av_freep()
Paul B Mahol
git at videolan.org
Mon Sep 16 16:17:44 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Sep 16 13:12:45 2013 +0000| [ca5456db7fa62a81d8effa20fb7547c16dd1d796] | committer: Paul B Mahol
avformat/segafilm: use av_freep()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ca5456db7fa62a81d8effa20fb7547c16dd1d796
---
libavformat/segafilm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c
index 232a931..b685d49 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;
}
More information about the ffmpeg-cvslog
mailing list