[FFmpeg-cvslog] vformat/hlsenc: typo in default localtime pattern

Bela Bodecs git at videolan.org
Thu Jan 5 13:26:37 EET 2017


ffmpeg | branch: master | Bela Bodecs <bodecsb at vivanet.hu> | Thu Jan  5 19:25:38 2017 +0800| [4c63910bdbf04ce4ed80a870d676877fc031df5a] | committer: Steven Liu

vformat/hlsenc: typo in default localtime pattern

in get_default_pattern_localtime_fmt the default pattern contains
%Y%m%d%H%I%S but the original intention was %Y%m%d%H%M%S

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=4c63910bdbf04ce4ed80a870d676877fc031df5a
---

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

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index eac8308..920987f 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -956,7 +956,7 @@ static const char * get_default_pattern_localtime_fmt(void)
     struct tm *p, tmbuf;
     p = localtime_r(&t, &tmbuf);
     // no %s support when strftime returned error or left format string unchanged
-    return (!strftime(b, sizeof(b), "%s", p) || !strcmp(b, "%s")) ? "-%Y%m%d%H%I%S.ts" : "-%s.ts";
+    return (!strftime(b, sizeof(b), "%s", p) || !strcmp(b, "%s")) ? "-%Y%m%d%H%M%S.ts" : "-%s.ts";
 }
 
 static int hls_write_header(AVFormatContext *s)



More information about the ffmpeg-cvslog mailing list