avformat/hlsenc: simplified code of use_localtime in hls_init
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
d1fe1344ea
commit
fa78a6abb3
@ -2875,17 +2875,10 @@ static int hls_init(AVFormatContext *s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hls->use_localtime) {
|
ret = hls->use_localtime ? sls_flag_check_duration_size(hls, vs) : sls_flag_check_duration_size_index(hls);
|
||||||
ret = sls_flag_check_duration_size_index(hls);
|
if (ret < 0)
|
||||||
if (ret < 0) {
|
goto fail;
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
ret = sls_flag_check_duration_size(hls, vs);
|
|
||||||
if (ret < 0) {
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (vs->has_subtitle) {
|
if (vs->has_subtitle) {
|
||||||
|
|
||||||
if (hls->flags & HLS_SINGLE_FILE)
|
if (hls->flags & HLS_SINGLE_FILE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user