From patchwork Wed Apr 4 08:37:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dixit, Vishwanath" X-Patchwork-Id: 8313 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.1.70 with SMTP id c67csp4618923jad; Wed, 4 Apr 2018 01:37:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx48M7CpIUH6/9nuOlsskJc4vmkmDF8/dLQkI6wnZBenTUItCiEVQxfSHPRmExM7lZ6tPV6oy X-Received: by 10.28.195.10 with SMTP id t10mr5948941wmf.121.1522831042204; Wed, 04 Apr 2018 01:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522831042; cv=none; d=google.com; s=arc-20160816; b=LslNkNwnU17vAzHT0ibkCSBYLZGEtaRfxayzcmLFaTtxCATI8p6IXo2xlnlLhbYfh6 FeTBytaWXCDhxDaqXd4adIO1p6EcXWD3eyAYjxf6zebFW9gSc8Q/11mUEj7h1ZLLPKXG RMBBaXIufGu/nkpg6VGUgQNl5wu2F/tM6URW4jfOH9FSq1z9gkHXusnR49PQWrV80Zco d+pCycFGJ4pxyxSeWMIcGRZICNDshYEi3O1QIWcXvw0mlb5zTu+DnBue6+6HIXI+RJEN sQJowktQyT2hXmF5J1UuCpAy/s46p8wEDw/eMwwwchEJ+9lHW6rlO8ZJEiXNtRmgwhP7 LqRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=RhWiYQGGDhhQYOzMwf+kFy4MVtR00hbeJEUqGyKQDsg=; b=V2qfC0683UpXbL7n8vB4e4t2GXtnKMsB77xAWGMKk1jMo9gRSa7xMAK3u60CwdMBzf jzf/U6JrjaXPvu/LGM2kHfVFrC2K+rWtHOFS7OtQsGQVhp8r8iqWoOdly5U8Q2tt8rR/ O8lZrDrU4WoS41jtNKiLj5Ru4LTZQ4OQGYswRjaipXCXFdcYDuKod2HrSNFjQXU2FRju jV89ugLYRceB+TJtzq8Dvh8r3SbKzapydFWdE2NIUW9LO7JoIHrB0khLhYMe4LC8zwAG ang7W+sILXTenl1I3bRgwh4yXITXBVWu3eYZNqxn50EbhIaRbtyqESPHr7aIy9ZFfEE4 LryA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@smtpservice.net header.s=m78bu0.a1-4.dyn header.b=AhSL5Kjr; 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=QUARANTINE sp=NONE dis=NONE) header.from=akamai.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y64si1824169wmb.225.2018.04.04.01.37.21; Wed, 04 Apr 2018 01:37:22 -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=@smtpservice.net header.s=m78bu0.a1-4.dyn header.b=AhSL5Kjr; 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=QUARANTINE sp=NONE dis=NONE) header.from=akamai.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 79834689940; Wed, 4 Apr 2018 11:36:59 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from a1i318.smtp2go.com (a1i318.smtp2go.com [43.228.185.62]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 150E0689936 for ; Wed, 4 Apr 2018 11:36:53 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=m78bu0.a1-4.dyn; x=1522831939; h=Feedback-ID: X-Smtpcorp-Track:Message-Id:Date:Subject:To:From:Reply-To:Sender: List-Unsubscribe; bh=gWiBq584nsBBYYhZRkA3C6JeHbnULk0oDnB8Y8iHtzs=; b=AhSL5Kjr Mc4pQWRFwfuhKEdZT64FHSX+WNIGxSBtv3jJs184IhoncGIiuRZUn8nbl/hCAfSKf2Enn3WpAIBF3 18l49dJPbB19XqCi/BU6YBFQamsk9G7PtWwSiNkgRfe+qAcl5ISkD3fnPN81LBLLyoyePn+PCojAo OZEyXcKKu4d7Fbfot9j86lWCmMoLj1eBRbXQZ7a7uIPWuIP75/jZDkjzwgzUle3rABf3LMAHhiJjA 5WlRyEHeb0CLDdTapwHJTvOYbP4XsOCH8L2K2E91WbS8F7vECMFZjsmBIWN1Hp+/Yzv8UR9QcdiYY n0BN7Z3t0nGP3QT/XxTsyfBFVg==; From: vdixit@akamai.com To: ffmpeg-devel@ffmpeg.org Date: Wed, 4 Apr 2018 14:07:02 +0530 Message-Id: <1522831022-6989-1-git-send-email-vdixit@akamai.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521782791-26076-1-git-send-email-vdixit@akamai.com> References: <1521782791-26076-1-git-send-email-vdixit@akamai.com> X-Smtpcorp-Track: 1f3dInRyIKaHNE.xu60ppY6l Feedback-ID: 337386m:337386asVRLGB:337386sEvtsWhBlh:SMTPCORP X-Report-Abuse: Please forward a copy of this message, including all headers, to Subject: [FFmpeg-devel] [PATCH v2 03/11] avformat/dashenc: writing average segment duration for @duration in template mode 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: Vishwanath Dixit MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Vishwanath Dixit --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 54ccf30..e719409 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -345,7 +345,7 @@ static void output_segment_list(OutputStream *os, AVIOContext *out, AVFormatCont int timescale = c->use_timeline ? os->ctx->streams[0]->time_base.den : AV_TIME_BASE; avio_printf(out, "\t\t\t\tuse_timeline) - avio_printf(out, "duration=\"%"PRId64"\" ", c->last_duration); + avio_printf(out, "duration=\"%"PRId64"\" ", c->seg_duration); avio_printf(out, "initialization=\"%s\" media=\"%s\" startNumber=\"%d\">\n", c->init_seg_name, c->media_seg_name, c->use_timeline ? start_number : 1); if (c->use_timeline) { int64_t cur_time = 0;