[FFmpeg-devel] [PATCH 3/3] avformat/dashenc: always attempt to enable prft on ldash mode

James Almer jamrial at gmail.com
Tue Feb 18 18:13:36 EET 2020


Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/dashenc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index b910cc22d0..045d2f4df6 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -1395,6 +1395,11 @@ static int dash_init(AVFormatContext *s)
         c->frag_type = FRAG_TYPE_EVERY_FRAME;
     }
 
+    if (c->ldash && !c->write_prft) {
+        av_log(s, AV_LOG_INFO, "Enabling Producer Reference Time element for Low Latency mode\n");
+        c->write_prft = 1;
+    }
+
     if (c->write_prft && !c->utc_timing_url) {
         av_log(s, AV_LOG_WARNING, "Producer Reference Time element option will be ignored as utc_timing_url is not set\n");
         c->write_prft = 0;
-- 
2.25.0



More information about the ffmpeg-devel mailing list