提交 22ba9a3c 编写于 作者: M Michael Niedermayer

avformat/hlsenc: Avoid "%T" "%F" in strftime() to improve compatibility

Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 025db5af
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册