From patchwork Thu Jan 13 01:58:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 33424 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp32621iog; Wed, 12 Jan 2022 18:24:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkZa2dngR6bsgID5y+GsU6BUvjvNyGbjt6HKfuDN6jwQiNpMhTiHJKVdxIPyo0Zhdrr3s1 X-Received: by 2002:a17:907:e8b:: with SMTP id ho11mr2016562ejc.481.1642040672645; Wed, 12 Jan 2022 18:24:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642040672; cv=none; d=google.com; s=arc-20160816; b=k8UsD2vlaYpa2ZzstF9hF83afmtYplFRdTVdkDwNnkzhysn7qAzyjZPpdUZzPQxApk +3yGm0J/SYxj/Pxfim3QIeqfxqlLNd5ILFnGISHJvBRVAegNHrAJaPfdQbJaOJcjfGqd 7dEXl8Wi8KHD7djxU62Ju0QfBPoJg/0s3o3ImMQgyMME8ay1DZTV9HsUXBqRHTrHTzYC WNNxXGKE6ADN09JhlOeMcAlLZmuF95QmYe8MuV++xvLBLNNuPhVrjzQoRU6jGa8HS0HG MbB58ozUVXnrjfk8K8Jjm05HgFPdNMNwf0u1N4cwPHWs0aABJ3ixQDHIPlca84tvSt3K xOMQ== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=z+z4zoZalhpVwyl41sNSdtW9qGnNj8bh8vNoe+Ylksg=; b=TPcKKV1UUe1vsph0SAKl1W2Ul4QK24ZwTDXhS8WxU4+452LT7qSzRVNOHaZ0l2RUEm 5xWEnW0vCT6VGckhnfw8xe6pKJz8/mPuHIh7W6ttBegnPthvY8/49Qd7KQ0d7/B35R/a trcTZZQCtl6j4GwJ188yaYyySYkxXsbV+0WmL+i7kljeJkCMbETrNYOw7/iRoLhdAvQV qlNgOqmubxNAvvdmmhGXezcbqnA5raJCK+T/8qn0PtYJ4x94I8TWDOTbyQmQQhgmoxq+ fWW5w4a2TLagUd7G7tCa1I7LfHl4XxWMuSgLHekV5j/R80gObudD5ifFPSwpbw/RbF1Z PGBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b="p/s83sp+"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id g20si1026268edb.62.2022.01.12.18.24.32; Wed, 12 Jan 2022 18:24:32 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b="p/s83sp+"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 15E5A68B3EB; Thu, 13 Jan 2022 03:59:05 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A009868B3FA for ; Thu, 13 Jan 2022 03:59:02 +0200 (EET) Received: by mail-qk1-f177.google.com with SMTP id g2so5612947qkp.1 for ; Wed, 12 Jan 2022 17:59:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=iDAtLZXInWyI53mIcCTVsxxr6OcA0837kK0yaRx8ggw=; b=p/s83sp+RW4VQOOtStxkg3VKWxZzgB8DyutDK5Q/fAnUKzjGI/hZYP6U8YnTwhWegq 46g5gEkBiGXopuBBOK7COjbv5ZmAKgROXIhtXAXYn9yMQv0q180xVqZ0+KyxEKB/SkVu UCEF49rFSL4nw19JBFFPDytMn5ujUftx7URnz0MhMDpSygYb0bIvQEScrImCHnqoU2DO VKNNSCcmaeG3nbizDiPrfauwhsJw0r8nqyyfsch9kdJkD5mgu7xbL4TZtln6nzhkl3hu UB6Z8AI40A/fsyngY4hexmwYdV3Y2VaYQuz8APGYm9UlX5pk2NQ81ZPdUpj4z1Z47Qjs UCBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iDAtLZXInWyI53mIcCTVsxxr6OcA0837kK0yaRx8ggw=; b=xEhZDeWHIZQ+sTJgS968lUey9Qk4dS1vnVl4QogKoqzJdDgzH+kbS1C/AYJwPqt++d JsLEZ/0qHENrBCi4ISuIWfZdTFbU4v7/Y1Vv8IQOD1SlWwLoTHBfIXD1XkYuwcYVoxp6 lGn/1tIoDZMSpmTwMiG2LbDUl5p3TRv4tdxd+yQBdmf6SLM00j1NcUhoS0kGWWEgehkG 6tNktfy17lCtd8Jvamr8BoqEKYplPc3IC5oG/OZCcr85vBN8siV9goipqOiB+4ecI0uA 14n8MgYWl0wAh4empzFsiqnCTbWr26sbpyX916PBUXGbPhxlSqGhbu7JkYjp25lr7FZB 8Kxw== X-Gm-Message-State: AOAM532nzhul1XysTnvJfNUkibMNn7pTUoWrl+bYnk1SWPoyhMQPKMdO ALeHgS6aqaijXJJB6mPrhmmSGE60OHo= X-Received: by 2002:a37:274d:: with SMTP id n74mr1864780qkn.185.1642039141288; Wed, 12 Jan 2022 17:59:01 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id u19sm893081qke.1.2022.01.12.17.59.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 17:59:00 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 22:58:05 -0300 Message-Id: <20220113015806.519-30-jamrial@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113015101.4-1-jamrial@gmail.com> References: <20220113015101.4-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 148/281] smoothstreaming: convert to new channel layout API 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: PIG54IW8tshJ From: Vittorio Giovara Signed-off-by: Vittorio Giovara Signed-off-by: James Almer --- libavformat/smoothstreamingenc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index a0ea5b8fa8..c67f0cba43 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavformat/smoothstreamingenc.c @@ -267,7 +267,9 @@ static int write_manifest(AVFormatContext *s, int final) if (s->streams[i]->codecpar->codec_type != AVMEDIA_TYPE_AUDIO) continue; last = i; - avio_printf(out, "\n", index, s->streams[i]->codecpar->bit_rate, os->fourcc, s->streams[i]->codecpar->sample_rate, s->streams[i]->codecpar->channels, os->packet_size, os->audio_tag, os->private_str); + avio_printf(out, "\n", + index, s->streams[i]->codecpar->bit_rate, os->fourcc, s->streams[i]->codecpar->sample_rate, + s->streams[i]->codecpar->ch_layout.nb_channels, os->packet_size, os->audio_tag, os->private_str); index++; } output_chunk_list(&c->streams[last], out, final, c->lookahead_count, c->window_size);