[FFmpeg-cvslog] ffserver: Clear avio context after closing it in rtp_new_av_stream()

Michael Niedermayer git at videolan.org
Tue Dec 1 00:02:57 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Nov 30 22:53:47 2015 +0100| [a00cc2e40d40c06e867ab4a07afbbbb3df565b02] | committer: Michael Niedermayer

ffserver: Clear avio context after closing it in rtp_new_av_stream()

Suggested-by: "Reynaldo H. Verdejo Pinochet" <reynaldo at osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a00cc2e40d40c06e867ab4a07afbbbb3df565b02
---

 ffserver.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffserver.c b/ffserver.c
index d3fcb82..029771c 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3413,6 +3413,7 @@ static int rtp_new_av_stream(HTTPContext *c,
         return -1;
     }
     avio_close_dyn_buf(ctx->pb, &dummy_buf);
+    ctx->pb = NULL;
     av_free(dummy_buf);
 
     c->rtp_ctx[stream_index] = ctx;



More information about the ffmpeg-cvslog mailing list