mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
avformat/dashenc: Support HTTP persistent for init segments as well
This commit is contained in:
parent
bf324359be
commit
de43c227fd
@ -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…
Reference in New Issue
Block a user