From patchwork Mon Mar 12 09:31:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dixit, Vishwanath" X-Patchwork-Id: 7951 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.1.70 with SMTP id c67csp1384422jad; Mon, 12 Mar 2018 02:32:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELtMuPeAQuOIzNjEUgdVZ/yu2H+a7O4FzrKfr/zhyED/Fk/UjDrEMklPKILaRK1ghhZNox19 X-Received: by 10.223.187.19 with SMTP id r19mr5483941wrg.110.1520847125863; Mon, 12 Mar 2018 02:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520847125; cv=none; d=google.com; s=arc-20160816; b=ga+z7suphfKQSfIuqjoiQF+NNP+BTcUxPrQEHHzqiiEtJl/Kg/V98P4xj2Z+/edvTn B36HUv5/FCy8TcHOiRhgWlMdC4AI+1Hwys9bAypt9FKRvKVz82ttd1fVw5pCSjyUmrDq SZ0Ay+KAJz5gMA3ZqrZspW3GBG6jXGjAoVeLOMfd1DEHLGdo8AjM/bCeE/N4eBzd+K9z evpHMLX3oFXYGo+dulWvxvGRa2zNlel61wIrCMbnHLGZ9R15JvBqmsRpzaxTrK/x+TYQ 0sdpeD7knr1lchfw+ND+Q5Jifbaz7PdHOnTgbdbeD2Qco7A+x9wbHzCh59AGBPhbvH75 qYaQ== 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:message-id:date:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=3uFbr2DKKNa2aJb6LzUct1nDwKzjjbL0JJMGzNJFlrM=; b=JJio9ozrNpe8u1SDHmWa01NNdRIUTli13FK9lmhZ3G9v3B8hOMN+ashsmm7iyGlzzM fj00sFYtaKHy7v9cD1pqfkvLVvS67nWdvPZwbVJTOA9iSNn6ZfY1Ox+wUpV2HbaW+GKU wwUu8PkJw0Uob1Qijv6pVGfA+pSpoc4/BANcMxLmmIVxPnH5682vb93vl+/GTftPa9jm lJyNzX02k5KRsZD/siGR/iQgI1nVOTPN9uh3yDtrJDNw3VG0uy3SyFoKZPOhFk8Z51hn ttcDavHnZ3I2VXXhIcvOKo/wGaCwhL7sFhDsztOD1Pz9N1nq3ioDStGYFh1gks49KTGU SwYQ== 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=qQgcYV6z; 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 f128si3024606wmg.256.2018.03.12.02.32.04; Mon, 12 Mar 2018 02:32:05 -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=qQgcYV6z; 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 C5C8A689F7D; Mon, 12 Mar 2018 11:31:52 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from a2i831.smtp2go.com (a2i831.smtp2go.com [103.47.207.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 45E2E689EC0 for ; Mon, 12 Mar 2018 11:31:46 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=m78bu0.a1-4.dyn; x=1520848022; h=Feedback-ID: X-Smtpcorp-Track:Message-Id:Date:Subject:To:From:Reply-To:Sender: List-Unsubscribe; bh=1Fwx+hfMMG3+eS65itnWTgCvz1Po5cl/xgAcpibE0GM=; b=qQgcYV6z lEq5mUSwmjlzy29YZ5bpVgER0Uen7+aukx9TVGeDFBIViQvPyDZC2tTQVorOO0EwYNhKD5DbEkkgt hurrPAJzPIM1VWBMORC/w3c3c4kdFrSU2LBRp6hNUbV2Tts+fxZQiK2mnUTeLRulwLwLDRccTfgJE cpRx29uvSshZW9eegFDb4EPCIpsWq/xPeJZQT1G5OssU3Mg83IY5NXlXg0+mZJ2D9wMx8wQ2xEJsy Fa2F0ZLsITKvD3Fihwpe4rOgWNtfnqIfRJeBlbvYmxs8J6rhOF42VJPySg0ErqZNsfBmiBdvw0QYa QgDddvCk8hfPdouGiCCvsQoXQQ==; From: vdixit@akamai.com To: ffmpeg-devel@ffmpeg.org Date: Mon, 12 Mar 2018 15:01:45 +0530 Message-Id: <1520847105-6574-1-git-send-email-vdixit@akamai.com> X-Mailer: git-send-email 1.9.1 X-Smtpcorp-Track: 1-vJo64ba7dWKi.pgkHC9_jX Feedback-ID: 337386m:337386asVRLGB:337386sPqq3vFIIc:SMTPCORP X-Report-Abuse: Please forward a copy of this message, including all headers, to Subject: [FFmpeg-devel] [PATCH 1/1] avformat/hlsenc: fix for zero EXTINF tag duration 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 This is the fix for bug https://trac.ffmpeg.org/ticket/7073 --- libavformat/hlsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 08fe0aa..7d9512b 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2501,7 +2501,7 @@ static int hls_init(AVFormatContext *s) /* Get one video stream to reference for split segments * so use the first video stream index. */ if ((vs->has_video == 1) && (vs->streams[j]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)) { - vs->reference_stream_index = j; + vs->reference_stream_index = vs->streams[j]->index; } vs->has_subtitle += vs->streams[j]->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE; }