ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Fri Jan 9 13:39:48 2015 +0100| [643dee846addc190fe2596ca8d9b53bafeba080f] | committer: Michael Niedermayer
avformat/sapenc: Use avio_closep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=643dee846addc190fe2596ca8d9b53bafeba080f --- libavformat/sapenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c index f909557..07fbf48 100644 --- a/libavformat/sapenc.c +++ b/libavformat/sapenc.c @@ -49,7 +49,7 @@ static int sap_write_close(AVFormatContext *s) if (!rtpctx) continue; av_write_trailer(rtpctx); - avio_close(rtpctx->pb); + avio_closep(&rtpctx->pb); avformat_free_context(rtpctx); s->streams[i]->priv_data = NULL; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog