From a0f9650046842249233b54b1f9b4aaf03dacf0a7 Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Thu, 21 Oct 2021 16:15:31 +0800 Subject: avformat/dashenc: enabling streaming and hls_playlist for lhls Try to make the feature easier to use, especially since the user have enabled -strict experimental manually. The user shouldn't be surprised that hls_playlist is enabled for lhls automatically, so change the log level from warning to info for that. --- libavformat/dashenc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavformat') diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index f9ec43689d..5faf06e11d 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1396,13 +1396,13 @@ static int dash_init(AVFormatContext *s) } if (c->lhls && !c->streaming) { - av_log(s, AV_LOG_WARNING, "LHLS option will be ignored as streaming is not enabled\n"); - c->lhls = 0; + av_log(s, AV_LOG_WARNING, "Enabling streaming as LHLS is enabled\n"); + c->streaming = 1; } if (c->lhls && !c->hls_playlist) { - av_log(s, AV_LOG_WARNING, "LHLS option will be ignored as hls_playlist is not enabled\n"); - c->lhls = 0; + av_log(s, AV_LOG_INFO, "Enabling hls_playlist as LHLS is enabled\n"); + c->hls_playlist = 1; } if (c->ldash && !c->streaming) { -- cgit v1.2.3