From patchwork Thu Jan 5 10:39:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bodecs Bela X-Patchwork-Id: 2059 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.89.21 with SMTP id n21csp5263105vsb; Thu, 5 Jan 2017 02:39:30 -0800 (PST) X-Received: by 10.28.150.69 with SMTP id y66mr64296942wmd.107.1483612770102; Thu, 05 Jan 2017 02:39:30 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id u82si81289070wme.75.2017.01.05.02.39.29; Thu, 05 Jan 2017 02:39:30 -0800 (PST) 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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 75EF868A10B; Thu, 5 Jan 2017 12:39:22 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.vivacom.hu (mail.vivacom.hu [217.173.41.231]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DC7DC68A0D4 for ; Thu, 5 Jan 2017 12:39:15 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by mail.vivacom.hu (Postfix) with ESMTP id DED6F83E02 for ; Thu, 5 Jan 2017 11:39:20 +0100 (CET) X-Virus-Scanned: amavisd-new at example.com Received: from mail.vivacom.hu ([127.0.0.1]) by localhost (mail.vivacom.intra [127.0.0.1]) (amavisd-new, port 10024) with LMTP id NSTWGPxzGsfS for ; Thu, 5 Jan 2017 11:39:19 +0100 (CET) Received: from [10.0.0.10] (mail.officeline.hu [217.173.32.91]) by mail.vivacom.hu (Postfix) with ESMTPA id A133886B64 for ; Thu, 5 Jan 2017 11:39:19 +0100 (CET) To: FFmpeg development discussions and patches From: Bodecs Bela Message-ID: <9635bfad-eb9a-2bd7-fa3a-1ace09b2c2d1@vivanet.hu> Date: Thu, 5 Jan 2017 11:39:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avformat/hlsenc: typo in default localtime pattern 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Dear All, in hlsenc.c at get_default_pattern_localtime_fmt function the default pattern contains %Y%m%d%H%I%S but the original intention was %Y%m%d%H%M%S Please apply this patch. thank you, Bela Bodecs From 9a11e116ad50bae635ce7c16821975b3d584ddc7 Mon Sep 17 00:00:00 2001 From: Bela Bodecs Date: Thu, 5 Jan 2017 11:19:33 +0100 Subject: [PATCH] avformat/hlsenc: typo in default localtime pattern in get_default_pattern_localtime_fmt the default pattern contains %Y%m%d%H%I%S but the original intention was %Y%m%d%H%M%S Signed-off-by: Bela Bodecs --- libavformat/hlsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 808a797..ac744a5 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -944,7 +944,7 @@ static const char * get_default_pattern_localtime_fmt(void) struct tm *p, tmbuf; p = localtime_r(&t, &tmbuf); // no %s support when strftime returned error or left format string unchanged - return (!strftime(b, sizeof(b), "%s", p) || !strcmp(b, "%s")) ? "-%Y%m%d%H%I%S.ts" : "-%s.ts"; + return (!strftime(b, sizeof(b), "%s", p) || !strcmp(b, "%s")) ? "-%Y%m%d%H%M%S.ts" : "-%s.ts"; } static int hls_write_header(AVFormatContext *s) -- 2.5.3.windows.1