diff mbox series

[FFmpeg-devel,3/3] avformat/dashenc: include an availabilityTimeComplete element in all streaming modes

Message ID 20200119214200.2369-3-jamrial@gmail.com
State Accepted
Headers show
Series [FFmpeg-devel,1/3] avformat/dashenc: make AdaptationSet id an integer value | expand

Checks

Context Check Description
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

James Almer Jan. 19, 2020, 9:42 p.m. UTC
It's not exclusive for Low Latency streaming. The muxer will serve partial
segments in standard streaming mode as well

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 30fe7a538c..9b83733a58 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -665,7 +665,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 &&
+        if (c->streaming && !final && os->frag_type != FRAG_TYPE_NONE &&
             (os->frag_type != FRAG_TYPE_DURATION || os->frag_duration != os->seg_duration))
             avio_printf(out, "availabilityTimeComplete=\"false\" ");