forked from FFmpeg/FFmpeg
ffserver: fixed deallocation bug in build_feed_streams
Signed-off-by: Gregor Riepl <onitake@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
7f5c6ea511
commit
d970f7ba31
1 changed files with 2 additions and 0 deletions
|
@ -3863,6 +3863,8 @@ drop:
|
||||||
if (avformat_write_header(s, NULL) < 0) {
|
if (avformat_write_header(s, NULL) < 0) {
|
||||||
http_log("Container doesn't support the required parameters\n");
|
http_log("Container doesn't support the required parameters\n");
|
||||||
avio_closep(&s->pb);
|
avio_closep(&s->pb);
|
||||||
|
s->streams = NULL;
|
||||||
|
s->nb_streams = 0;
|
||||||
avformat_free_context(s);
|
avformat_free_context(s);
|
||||||
goto bail;
|
goto bail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue