Commit a00cc2e4 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Suggested-by: 's avatar"Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 40063a90
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment