OSDN Git Service

ffserver: fixed deallocation bug in build_feed_streams
authorGregor Riepl <onitake@gmail.com>
Tue, 24 May 2016 13:17:22 +0000 (15:17 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 May 2016 22:22:06 +0000 (00:22 +0200)
Signed-off-by: Gregor Riepl <onitake@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffserver.c

index b5bd8f8..1a27583 100644 (file)
@@ -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;
             }