diff options
author | Gregor Riepl <onitake@gmail.com> | 2016-05-24 15:17:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-05-27 00:22:06 +0200 |
commit | d970f7ba31246040787e5ea6eb73bb85cafb932b (patch) | |
tree | 5a9fb96c5e3bca36b1abb9a5e1b687647edb3b0b | |
parent | 7f5c6ea5110237394a24d249e19ee3a9b829306f (diff) | |
download | ffmpeg-d970f7ba31246040787e5ea6eb73bb85cafb932b.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>
-rw-r--r-- | ffserver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index b5bd8f833b..1a27583677 100644 --- a/ffserver.c +++ b/ffserver.c @@ -3863,6 +3863,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; } |