[FFmpeg-cvslog] avformat/movenc: use av_freep() instead of av_free() except for local variables before return
Michael Niedermayer
git at videolan.org
Fri Aug 23 00:38:38 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Aug 23 00:29:56 2013 +0200| [c443689afbb3edf3b025d4b7834c707d63eaa6b4] | committer: Michael Niedermayer
avformat/movenc: use av_freep() instead of av_free() except for local variables before return
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c443689afbb3edf3b025d4b7834c707d63eaa6b4
---
libavformat/movenc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 13ffa24..ecf57a5 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3984,7 +3984,7 @@ static int mov_write_trailer(AVFormatContext *s)
}
if (mov->chapter_track) {
- av_free(mov->tracks[mov->chapter_track].enc->extradata);
+ av_freep(&mov->tracks[mov->chapter_track].enc->extradata);
av_freep(&mov->tracks[mov->chapter_track].enc);
}
@@ -4007,7 +4007,7 @@ static int mov_write_trailer(AVFormatContext *s)
av_freep(&mov->tracks[i].frag_info);
if (mov->tracks[i].vos_len)
- av_free(mov->tracks[i].vos_data);
+ av_freep(&mov->tracks[i].vos_data);
}
av_freep(&mov->tracks);
More information about the ffmpeg-cvslog
mailing list