[FFmpeg-cvslog] avformat/dashenc: Support HTTP persistent for init segments as well
kjeyapal@akamai.com
git at videolan.org
Fri Oct 26 11:13:33 EEST 2018
ffmpeg | branch: master | kjeyapal at akamai.com <kjeyapal at akamai.com> | Sun Oct 21 07:08:51 2018 +0530| [de43c227fd7d4e8e5fdc3b26f9bc1702514c2c0a] | committer: Karthick J
avformat/dashenc: Support HTTP persistent for init segments as well
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=de43c227fd7d4e8e5fdc3b26f9bc1702514c2c0a
---
libavformat/dashenc.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index b0a59af3ee..4e2ea2ebf2 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list