diff options
author | Vishwanath Dixit <vdixit@akamai.com> | 2018-03-02 11:52:37 +0530 |
---|---|---|
committer | Karthick Jeyapal <kjeyapal@akamai.com> | 2018-03-03 18:26:44 +0530 |
commit | 0dd1fff1c97d6d4e4f9c485028652aa791e4a91f (patch) | |
tree | f1d5a6add81c71da50c03f2c3a7a5a440c27c8a0 /libavformat/dashenc.c | |
parent | 6a89cdc474bc1a2a276dff63629784d68b9cab6e (diff) | |
download | ffmpeg-0dd1fff1c97d6d4e4f9c485028652aa791e4a91f.tar.gz |
avformat/dashenc: fix for segment open issue when persistent connection is enabled
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r-- | libavformat/dashenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 83e0cff728..489e458147 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1308,7 +1308,7 @@ static int dash_write_packet(AVFormatContext *s, AVPacket *pkt) flush_init_segment(s, os); //open the output context when the first frame of a segment is ready - if (!c->single_file && !os->out) { + if (!c->single_file && os->packets_written == 1) { AVDictionary *opts = NULL; const char *proto = avio_find_protocol_name(s->url); int use_rename = proto && !strcmp(proto, "file"); |