Commit 0dd1fff1 authored by Vishwanath Dixit's avatar Vishwanath Dixit Committed by Karthick Jeyapal

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

parent 6a89cdc4
...@@ -1308,7 +1308,7 @@ static int dash_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -1308,7 +1308,7 @@ static int dash_write_packet(AVFormatContext *s, AVPacket *pkt)
flush_init_segment(s, os); flush_init_segment(s, os);
//open the output context when the first frame of a segment is ready //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; AVDictionary *opts = NULL;
const char *proto = avio_find_protocol_name(s->url); const char *proto = avio_find_protocol_name(s->url);
int use_rename = proto && !strcmp(proto, "file"); int use_rename = proto && !strcmp(proto, "file");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment