ffmpeg | branch: master | Bela Bodecs <bode...@vivanet.hu> | Thu Jan  5 
07:39:00 2017 +0800| [8c9c43fc43f824366798b38177b7ca7ad028feb9] | committer: 
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: Bela Bodecs <bode...@vivanet.hu>
Signed-off-by: Steven Liu <l...@chinaffmpeg.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8c9c43fc43f824366798b38177b7ca7ad028feb9
---

 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 4b1f12f..808a797 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -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));

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to