Commit fa78a6ab authored by Steven Liu's avatar Steven Liu

avformat/hlsenc: simplified code of use_localtime in hls_init

Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent d1fe1344
......@@ -2875,17 +2875,10 @@ static int hls_init(AVFormatContext *s)
}
}
if (!hls->use_localtime) {
ret = sls_flag_check_duration_size_index(hls);
if (ret < 0) {
goto fail;
}
} else {
ret = sls_flag_check_duration_size(hls, vs);
if (ret < 0) {
goto fail;
}
}
ret = hls->use_localtime ? sls_flag_check_duration_size(hls, vs) : sls_flag_check_duration_size_index(hls);
if (ret < 0)
goto fail;
if (vs->has_subtitle) {
if (hls->flags & HLS_SINGLE_FILE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment