]> git.sesse.net Git - ffmpeg/commitdiff
avformat/hlsenc: Avoid "%T" "%F" in strftime() to improve compatibility
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 13 Sep 2016 20:55:12 +0000 (22:55 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 13 Sep 2016 21:44:35 +0000 (23:44 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/hlsenc.c

index a37631254449275516bd082e3e2bdb28c1870f8a..157dbd4d3465475d1d714f4db2ec9a164e0dc67b 100644 (file)
@@ -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;