[FFmpeg-cvslog] avformat/hlsenc: bugfix in duplicate filename detection
Bela Bodecs
git at videolan.org
Thu Jan 5 01:40:55 EET 2017
ffmpeg | branch: master | Bela Bodecs <bodecsb at 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 <bodecsb at vivanet.hu>
Signed-off-by: Steven Liu <lq at 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));
More information about the ffmpeg-cvslog
mailing list