[FFmpeg-devel] [PATCH 2/8] libavformat/dashenc: add Z to localtime to force correct UTC parsing

Peter Große pegro at friiks.de
Sat Jan 21 16:39:03 EET 2017


From: Anton Schubert <ischluff at mailbox.org>

Signed-off-by: Anton Schubert <ischluff at mailbox.org>
---
 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index d0a2ab5..3286c36 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -447,7 +447,7 @@ static void format_date_now(char *buf, int size)
     struct tm *ptm, tmbuf;
     ptm = gmtime_r(&t, &tmbuf);
     if (ptm) {
-        if (!strftime(buf, size, "%Y-%m-%dT%H:%M:%S", ptm))
+        if (!strftime(buf, size, "%Y-%m-%dT%H:%M:%SZ", ptm))
             buf[0] = '\0';
     }
 }
-- 
2.10.2



More information about the ffmpeg-devel mailing list