Browse Source

avformat/dashenc: fix for segment open issue when persistent connection is enabled

tags/n4.0
Vishwanath Dixit Karthick Jeyapal 7 years ago
parent
commit
0dd1fff1c9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/dashenc.c

+ 1
- 1
libavformat/dashenc.c View File

@@ -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");


Loading…
Cancel
Save