From patchwork Wed Apr 26 11:27:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mfojtak X-Patchwork-Id: 3499 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.3.129 with SMTP id 123csp519103vsd; Wed, 26 Apr 2017 13:13:48 -0700 (PDT) X-Received: by 10.28.37.4 with SMTP id l4mr2178963wml.100.1493237628771; Wed, 26 Apr 2017 13:13:48 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 66si745491wmm.122.2017.04.26.13.13.48; Wed, 26 Apr 2017 13:13:48 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@seznam.cz; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=seznam.cz Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 352096882FB; Wed, 26 Apr 2017 23:13:44 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mxc1.seznam.cz (mxc1.seznam.cz [77.75.79.23]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 78033688289 for ; Wed, 26 Apr 2017 14:28:18 +0300 (EEST) Received: from email.seznam.cz by email-smtpc3b.ko.seznam.cz (email-smtpc3b.ko.seznam.cz [10.53.13.75]) id 0654175beee1604a06579c03; Wed, 26 Apr 2017 13:28:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seznam.cz; s=beta; t=1493206099; bh=+rf4nR0x9j7gGF7a4ahCkirvrC5lbQhyWgyAQ7W11vM=; h=Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer; b=jycHs3I+V/FFRmlO3qcyVEAovXgV2CjbT/K5SGdD5+Phx2PSMgmlt4j6O6eov3nd2 YMIhWOwEXT7DKdE/fKrIppuhgFfaKJn7ks7TOqni4ep2wcQrVdp/I0/ba3tcBRkT+O 3NDcN6q9E76Xd3UoxjFiS4i46OfFsNhI5WG+LCkE= Received: from ubuntu16.10 (unknown [89.233.177.95]) by email-relay26.ko.seznam.cz (Seznam SMTPD 1.3.60) with ESMTP; Wed, 26 Apr 2017 13:28:17 +0200 (CEST) From: mfojtak To: ffmpeg-devel@ffmpeg.org Date: Wed, 26 Apr 2017 13:27:59 +0200 Message-Id: <20170426112759.12130-1-mfojtak@seznam.cz> X-Mailer: git-send-email 2.9.3 X-Mailman-Approved-At: Wed, 26 Apr 2017 23:13:42 +0300 Subject: [FFmpeg-devel] [PATCH] This fixes ISO date formatissue when manifest created by this muxer is not playable in most players. This ensures compatibility with dash standard. Tested on many players (dashj.js, shaka, VLC, etc.) X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: mfojtak MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 6232c70..fe1d6c2 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -433,7 +433,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'; } }