diff options
author | James Almer <jamrial@gmail.com> | 2020-01-19 18:11:08 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-02-16 14:02:45 -0300 |
commit | 29be3de926e9d94b64de549fb12b7c57fe881cda (patch) | |
tree | e8f6585b21d5dc745812eeeafc197c3fddf2f1ec /libavformat | |
parent | d2a33f665cf0e889ba2824085d203739caa0534d (diff) | |
download | ffmpeg-29be3de926e9d94b64de549fb12b7c57fe881cda.tar.gz |
avformat/dashenc: include an availabilityTimeComplete element in all streaming modes
It's not exclusive for Low Latency streaming. The muxer will serve partial
segments regardless of streaming mode.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/dashenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index a7f35063a8..00fb23f9b0 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -662,8 +662,7 @@ static void output_segment_list(OutputStream *os, AVIOContext *out, AVFormatCont avio_printf(out, "availabilityTimeOffset=\"%.3f\" ", os->availability_time_offset); } - if (c->ldash && !final && os->frag_type != FRAG_TYPE_NONE && - (os->frag_type != FRAG_TYPE_DURATION || os->frag_duration != os->seg_duration)) + if (c->streaming && os->availability_time_offset && !final) avio_printf(out, "availabilityTimeComplete=\"false\" "); avio_printf(out, "initialization=\"%s\" media=\"%s\" startNumber=\"%d\"", os->init_seg_name, os->media_seg_name, c->use_timeline ? start_number : 1); |