ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Thu Aug 7 23:04:32 2014 +0200| [92a28e9f562124732fa27f0c62118f15a6fee239] | committer: Michael Niedermayer
avformat/mpegtsenc: Use av_freep() for pids Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=92a28e9f562124732fa27f0c62118f15a6fee239 --- libavformat/mpegtsenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 4c5e289f..6ae2391 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -710,7 +710,7 @@ static int mpegts_write_header(AVFormatContext *s) } } - av_free(pids); + av_freep(&pids); /* if no video stream, use the first stream as PCR */ if (service->pcr_pid == 0x1fff && s->nb_streams > 0) { @@ -778,7 +778,7 @@ static int mpegts_write_header(AVFormatContext *s) return 0; fail: - av_free(pids); + av_freep(&pids); for (i = 0; i < s->nb_streams; i++) { st = s->streams[i]; ts_st = st->priv_data; _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
