[FFmpeg-devel] avformat/hlsenc: typo in default localtime pattern

Submitted by Bodecs Bela on Jan. 5, 2017, 10:39 a.m.

Details

Message ID 9635bfad-eb9a-2bd7-fa3a-1ace09b2c2d1@vivanet.hu
State New
Headers show

Commit Message

Bodecs Bela Jan. 5, 2017, 10:39 a.m.
Dear All,

in hlsenc.c at get_default_pattern_localtime_fmt function the default 
pattern contains
%Y%m%d%H%I%S but the original intention was %Y%m%d%H%M%S
Please apply this patch.


thank you,

Bela Bodecs

Comments

Steven Liu Jan. 5, 2017, 11:27 a.m.
2017-01-05 18:39 GMT+08:00 Bodecs Bela <bodecsb@vivanet.hu>:

> Dear All,
>
> in hlsenc.c at get_default_pattern_localtime_fmt function the default
> pattern contains
> %Y%m%d%H%I%S but the original intention was %Y%m%d%H%M%S
> Please apply this patch.
>
>
> thank you,
>
> Bela Bodecs
>
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
---
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

applied

Patch hide | download patch | download mbox

From 9a11e116ad50bae635ce7c16821975b3d584ddc7 Mon Sep 17 00:00:00 2001
From: Bela Bodecs <bodecsb@vivanet.hu>
Date: Thu, 5 Jan 2017 11:19:33 +0100
Subject: [PATCH] avformat/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@vivanet.hu>
---
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 808a797..ac744a5 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -944,7 +944,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)
-- 
2.5.3.windows.1