Browse Source

avformat/hlsenc: check hls segment mode for ignore the init filename

ignore the fmp4_init_filename when in normal hls segment mode

Signed-off-by: Steven Liu <lq@onvideo.cn>
tags/n3.4.1
Steven Liu Aman Gupta 8 years ago
parent
commit
fac3cfb6c1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/hlsenc.c

+ 2
- 0
libavformat/hlsenc.c View File

@@ -1443,6 +1443,7 @@ static int hls_write_header(AVFormatContext *s)
}
}

if (hls->segment_type == SEGMENT_TYPE_FMP4) {
if (av_strcasecmp(hls->fmp4_init_filename, "init.mp4")) {
hls->base_output_dirname = av_malloc(fmp4_init_filename_len);
if (!hls->base_output_dirname) {
@@ -1472,6 +1473,7 @@ static int hls_write_header(AVFormatContext *s)
av_strlcpy(hls->base_output_dirname, hls->fmp4_init_filename, fmp4_init_filename_len);
}
}
}

if (!hls->use_localtime) {
ret = sls_flag_check_duration_size_index(hls);


Loading…
Cancel
Save