Browse Source

avformat/hlsenc: simplified code of use_localtime in hls_init

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
tags/n4.3
Steven Liu 6 years ago
parent
commit
fa78a6abb3
1 changed files with 4 additions and 11 deletions
  1. +4
    -11
      libavformat/hlsenc.c

+ 4
- 11
libavformat/hlsenc.c View File

@@ -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)


Loading…
Cancel
Save