Commit 8c9c43fc authored by Bela Bodecs's avatar Bela Bodecs Committed by Steven Liu

avformat/hlsenc: bugfix in duplicate filename detection

A wrong, unitialized variable is used for testing. This patch fixes this
typo.
Signed-off-by: 's avatarBela Bodecs <bodecsb@vivanet.hu>
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 72d61015
......@@ -490,7 +490,7 @@ static int hls_append_segment(struct AVFormatContext *s, HLSContext *hls, double
filename = hls->avf->filename;
}
if (find_segment_by_filename(hls->segments, filename)
|| find_segment_by_filename(hls->old_segments, en->filename)) {
|| find_segment_by_filename(hls->old_segments, filename)) {
av_log(hls, AV_LOG_WARNING, "Duplicated segment filename detected: %s\n", filename);
}
av_strlcpy(en->filename, filename, sizeof(en->filename));
......
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