ffserver: Clear avio context after closing it in rtp_new_av_stream()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 Nov 2015 21:53:47 +0000 (22:53 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 Nov 2015 22:31:12 +0000 (23:31 +0100)
Suggested-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffserver.c

index d3fcb82..029771c 100644 (file)
@@ -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;