aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregor Riepl <onitake@gmail.com>2016-05-24 15:17:22 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-05 02:40:31 +0200
commit241f1e603f5c958a41083658ab3d494f913d146e (patch)
tree38cdac6787bcb5730ffdf2d31e2afdcb80c4de0e
parent4d9fdca05319ec84c3052521b6693ce59fd2e0d9 (diff)
downloadffmpeg-241f1e603f5c958a41083658ab3d494f913d146e.tar.gz
ffserver: fixed deallocation bug in build_feed_streams
Signed-off-by: Gregor Riepl <onitake@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit d970f7ba31246040787e5ea6eb73bb85cafb932b) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--ffserver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c
index 374af99cc7..35e399dc55 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3858,6 +3858,8 @@ drop:
if (avformat_write_header(s, NULL) < 0) {
http_log("Container doesn't support the required parameters\n");
avio_closep(&s->pb);
+ s->streams = NULL;
+ s->nb_streams = 0;
avformat_free_context(s);
goto bail;
}