Browse Source

avformat/dashenc: Support HTTP persistent for init segments as well

tags/n4.1
kjeyapal@akamai.com Karthick J 7 years ago
parent
commit
de43c227fd
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      libavformat/dashenc.c

+ 5
- 2
libavformat/dashenc.c View File

@@ -355,8 +355,11 @@ static int flush_init_segment(AVFormatContext *s, OutputStream *os)
return ret;

os->pos = os->init_range_length = range_length;
if (!c->single_file)
ff_format_io_close(s, &os->out);
if (!c->single_file) {
char filename[1024];
snprintf(filename, sizeof(filename), "%s%s", c->dirname, os->initfile);
dashenc_io_close(s, &os->out, filename);
}
return 0;
}



Loading…
Cancel
Save