diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-09-13 22:55:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-09-13 23:44:35 +0200 |
commit | 22ba9a3cb8c0e7069d03cf8b142ddbfc5f65ba38 (patch) | |
tree | 3a9d826eebe4da53f2c20116ebfd7335a904403b /libavformat/hlsenc.c | |
parent | 025db5afaf28228aa14f9621b09bd424a2c1adfb (diff) | |
download | ffmpeg-22ba9a3cb8c0e7069d03cf8b142ddbfc5f65ba38.tar.gz |
avformat/hlsenc: Avoid "%T" "%F" in strftime() to improve compatibility
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index a376312544..157dbd4d34 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -544,7 +544,7 @@ static int hls_window(AVFormatContext *s, int last) tt = (int64_t)prog_date_time; milli = av_clip(lrint(1000*(prog_date_time - tt)), 0, 999); tm = localtime_r(&tt, &tmpbuf); - strftime(buf0, sizeof(buf0), "%FT%T", tm); + strftime(buf0, sizeof(buf0), "%Y-%m-%dT%H:%M:%S", tm); strftime(buf1, sizeof(buf1), "%z", tm); avio_printf(out, "#EXT-X-PROGRAM-DATE-TIME:%s.%03d%s\n", buf0, milli, buf1); prog_date_time += en->duration; |