From patchwork Fri Jan 7 16:34:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyan Doshi X-Patchwork-Id: 33159 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp536312iog; Fri, 7 Jan 2022 08:35:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsMrT49r5wFpSbp9MeRP/y5cSNbp4AAtlSAvBSKd/MX24qHf8Sj+6msG6Nw9LUaA1noaJB X-Received: by 2002:a50:fd04:: with SMTP id i4mr1378490eds.74.1641573305775; Fri, 07 Jan 2022 08:35:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641573305; cv=none; d=google.com; s=arc-20160816; b=P7eQk/Vx0Qp4T9HSKJAQAT/6Ugck92RLyWHnjuGWWnge5eOfaqTCbd7lVeEYDbDc4e SspJsoCn1e1oeY4oPkoZshUdWwhksp80aqwi/x1HGh77twHS08VG43By7FsrQB7Mwh9l zFuwIXR0rGLjR7RBvdUO0NvjaUSWCpCceYhZUdvcWMClU2hv8ZSE/1TTvGfR4TW6GefB jSG90cCRisHYQyZ4J/oj4ReAl3+zxiRY5PLpes5uayNuMe1Ydk5lUfa0673KWetP9geh bx9Y+Tiy6Gx5aZzEBCVTK8TYExNcKHZjwqgcQi0VvOiRjbikIfAf2wehg4U7SllUlEuc mMnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=BtwVU84lwSQQcoB1jNnGUXV3iD/CL31MJ4cnxi9byBI=; b=SaSYICvfYky6mbGZjeIdxI7t0qkRVZiJt9MzEfHVXWQU82i/3hLnH9eiRVCt/PNBXF y+kp23pgBYCo4L359/4odkwA45PW3bornsSzcg3kSminXvFSKvtE7if+AHDtzIROgOBZ cgZWit4Ryo5yKl1Hc3PUvdBEtVYCUaM4X2PxuOMVRpsDjR/Dcdvdror/yWWqmv+OuRQk zOjOOITEG7FfSA14h89bc50R2ktVGJM6uKJ83rBVGQa/ffO1FzKWKibNjqNJkYBB0eRK WIq37z07/4Yc40jG9pNn0EoHsBHrj62nVFuD6WYQzyn0nOyM7NjTg5+P7T/N9Q3cmEY2 1eAQ== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id dy4si2673228edb.578.2022.01.07.08.35.05; Fri, 07 Jan 2022 08:35:05 -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 74B7D68AAC1; Fri, 7 Jan 2022 18:35:01 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BA8C16899A7 for ; Fri, 7 Jan 2022 18:34:54 +0200 (EET) Received: from smtp102.mailbox.org (smtp102.mailbox.org [80.241.60.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4JVpj95VDBzQjcK for ; Fri, 7 Jan 2022 17:34:53 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de From: Gyan Doshi To: ffmpeg-devel@ffmpeg.org Date: Fri, 7 Jan 2022 22:04:32 +0530 Message-Id: <20220107163433.5721-1-ffmpeg@gyani.pro> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avformat/hlsenc: convey stream id to segment streams X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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" X-TUID: vv2LNqzkMlsD --- Plan to apply to 5.0 libavformat/hlsenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 459129818a..ef8973cea1 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -900,6 +900,7 @@ static int hls_mux_init(AVFormatContext *s, VariantStream *vs) st->sample_aspect_ratio = vs->streams[i]->sample_aspect_ratio; st->time_base = vs->streams[i]->time_base; av_dict_copy(&st->metadata, vs->streams[i]->metadata, 0); + st->id = vs->streams[i]->id; } vs->start_pos = 0;