diff options
author | Zhao Zhili <quinkblack@foxmail.com> | 2021-10-21 16:15:30 +0800 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-11-05 15:30:43 -0300 |
commit | f6b90d5fef0bd2878227ab073f3ddae53c2e2147 (patch) | |
tree | bb6adba56b2fc85b5e4a09e513a6708b1bbc2300 /libavformat | |
parent | c42d513ede6bc58b2cc7b0e47f90be27700843f8 (diff) |
avformat/dashenc: enabling streaming automatically for ldash
There is a little chance that user specified contradicted options
like -streaming 0 -ldash 1, however, it's more likely that user
didn't know or forgot to enable streaming for ldash. So enabling
streaming automatically to make the feature easier to use, similar
like enable FF_MOV_FLAG_FRAGMENT/EMPTY_MOOV/DEFAULT_BASE_MOOF and
so on for FF_MOV_FLAG_CMAF.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/dashenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 94e77c7b8c..f9ec43689d 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1406,8 +1406,8 @@ static int dash_init(AVFormatContext *s) } if (c->ldash && !c->streaming) { - av_log(s, AV_LOG_WARNING, "LDash option will be ignored as streaming is not enabled\n"); - c->ldash = 0; + av_log(s, AV_LOG_WARNING, "Enabling streaming as LDash is enabled\n"); + c->streaming = 1; } if (c->target_latency && !c->streaming) { |