avformat/hlsenc: bugfix in duplicate filename detection
authorBela Bodecs <bodecsb@vivanet.hu>
Wed, 4 Jan 2017 23:39:00 +0000 (07:39 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Wed, 4 Jan 2017 23:39:00 +0000 (07:39 +0800)
A wrong, unitialized variable is used for testing. This patch fixes this
typo.

Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hlsenc.c

index 4b1f12f..808a797 100644 (file)
@@ -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));