diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-30 22:53:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-30 23:31:12 +0100 |
commit | a00cc2e40d40c06e867ab4a07afbbbb3df565b02 (patch) | |
tree | ecb74d2c446bea9397a251869e5723e1667f2f51 | |
parent | 40063a900b6d5e39d3fab8ec9890cf8af02f8268 (diff) | |
download | ffmpeg-a00cc2e40d40c06e867ab4a07afbbbb3df565b02.tar.gz |
ffserver: Clear avio context after closing it in rtp_new_av_stream()
Suggested-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | ffserver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index d3fcb82b6c..029771c20a 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; |