mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-02 16:46:48 +00:00
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@vivanet.hu> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
e6050d81b0
commit
4c63910bdb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user