ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Thu Jan 8 20:08:24 2015 +0100| [e360d030b3620dd7dfdfb635b4254af7620d9a4f] | committer: Michael Niedermayer
avformat/rtsp: 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=e360d030b3620dd7dfdfb635b4254af7620d9a4f --- libavformat/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 7276b79..c9ffba4 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -684,7 +684,7 @@ void ff_rtsp_undo_setup(AVFormatContext *s, int send_packets) avio_close_dyn_buf(rtpctx->pb, &ptr); av_free(ptr); } else { - avio_close(rtpctx->pb); + avio_closep(&rtpctx->pb); } avformat_free_context(rtpctx); } else if (CONFIG_RTPDEC && rt->transport == RTSP_TRANSPORT_RDT) _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog