Signed-off-by: James Almer <[email protected]>
---
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
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".