Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishwanath Dixit <vdixit@akamai.com>2018-03-02 09:22:37 +0300
committerKarthick Jeyapal <kjeyapal@akamai.com>2018-03-03 15:56:44 +0300
commit0dd1fff1c97d6d4e4f9c485028652aa791e4a91f (patch)
treef1d5a6add81c71da50c03f2c3a7a5a440c27c8a0
parent6a89cdc474bc1a2a276dff63629784d68b9cab6e (diff)
avformat/dashenc: fix for segment open issue when persistent connection is enabled
-rw-r--r--libavformat/dashenc.c2
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");