[FFmpeg-cvslog] ffserver: Use avio_closep() to avoid leaving stale pointers in memor
Michael Niedermayer
git at videolan.org
Thu Jan 8 14:43:13 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jan 8 14:11:12 2015 +0100| [eb3e661babfdd9583db1a6706ca526a33b49a467] | committer: Michael Niedermayer
ffserver: Use avio_closep() to avoid leaving stale pointers in memor
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb3e661babfdd9583db1a6706ca526a33b49a467
---
ffserver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffserver.c b/ffserver.c
index c4cf390..1f20d19 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3630,7 +3630,7 @@ static void build_feed_streams(void)
}
/* XXX: need better API */
av_freep(&s->priv_data);
- avio_close(s->pb);
+ avio_closep(&s->pb);
s->streams = NULL;
s->nb_streams = 0;
avformat_free_context(s);
More information about the ffmpeg-cvslog
mailing list