summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8bb59e6)
When the hlsenc at BYTERANGE mode, it should not show the warning message:
"Duplicated segment filename detected:"
Reported-by: Marco <marco@worldcast.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
{
HLSSegment *en = av_malloc(sizeof(*en));
const char *filename;
{
HLSSegment *en = av_malloc(sizeof(*en));
const char *filename;
+ int byterange_mode = (hls->flags & HLS_SINGLE_FILE) || (hls->max_seg_size > 0);
if (hls->use_localtime_mkdir) {
filename = hls->avf->filename;
}
if (hls->use_localtime_mkdir) {
filename = hls->avf->filename;
}
- if (find_segment_by_filename(hls->segments, filename)
- || find_segment_by_filename(hls->old_segments, filename)) {
+ if ((find_segment_by_filename(hls->segments, filename) || find_segment_by_filename(hls->old_segments, filename))
+ && !byterange_mode) {
av_log(hls, AV_LOG_WARNING, "Duplicated segment filename detected: %s\n", filename);
}
av_strlcpy(en->filename, filename, sizeof(en->filename));
av_log(hls, AV_LOG_WARNING, "Duplicated segment filename detected: %s\n", filename);
}
av_strlcpy(en->filename, filename, sizeof(en->filename));