From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id BF8A642E4B for ; Thu, 13 Jan 2022 02:27:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6CAE468B470; Thu, 13 Jan 2022 04:01:17 +0200 (EET) Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DA0CE68B480 for ; Thu, 13 Jan 2022 04:01:14 +0200 (EET) Received: by mail-qk1-f171.google.com with SMTP id z10so1221097qkf.7 for ; Wed, 12 Jan 2022 18:01:14 -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=e3UCIFjgrC0vV75ZedqxBdGvVLrGl999joSmg8WZHVw=; b=npXVjq2txK9KWOor2o3rDKRdzWrZzlpOyVMqLEZk15c+LS1aaaVTF4PkYKELJNABzY NcA22Ny9IpLJXSYuBO/RWL+tEa8OgqlJvCABdSQgoqV++lpuszPWowiTMu6tD3/VtXXK QBi7ZOEaqrcr0YHJu4IhhlOrVbb3ZBBgXzdNa1hKkgiYQzuRyPBxEr/7eUatQ6Bdpc/t xO3NgFQSNUi1cgxeftpNK/iqn4Y6Ma3xq2m9h9lQ8zs7A1XabvSUqESW+J68oxF0uSg2 Nuh+XIJM42jpVA2PCbD3eZKiRppQ0e9uFMzZnttZ5iqJspH0tMfK65laCo6+xt+lFtG2 kDSg== 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=e3UCIFjgrC0vV75ZedqxBdGvVLrGl999joSmg8WZHVw=; b=dtiSG5ti8Y2u6e1IJqQM9Z1nhWJgJAkliAAQpnp1OILFkMqJjFGN3YpuMSs654D4l8 kc7tgM3wC7Z4Zdq/LZnZbIPT5MH3LMUcLvKuRzr7L0jqmL43wkUT2Z7+Vv8PWSsGUtGC Pevu8eZfQ9ekf2VAfCoW6Adw2s945dc95ta3a2x07DS8mej+vLcWM5lLIhrGeZizIAgd oupG71/6QDE9ce/v3poRi/KJEQgS8HqP4o2isC8fG4tUupj7aAqWV5zM9AjTg5TqmuDU 7SlTuzynKNNws+854ikPjuE0p6L8yE64IchTdQAj1wv55vHwfpgCBglmLpJWbA24QygB ysQQ== X-Gm-Message-State: AOAM532XxhidmRaAyvvzJdB2FYirvtPlYS2hgONSk0NoIFHn2Gp3LWJE K7GJ4BEz7myBh5NWL2gSnbhi1dpSWAE= X-Google-Smtp-Source: ABdhPJzA04/UTvm0Yzb1Pz4/2Hz6H+/k7LaXDSG3bcf32R9GGh5K0mDy0JcF0evtgqMqnxB8hnl7jA== X-Received: by 2002:a37:a302:: with SMTP id m2mr1673090qke.722.1642039273531; Wed, 12 Jan 2022 18:01:13 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id y17sm1182232qtj.75.2022.01.12.18.01.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 18:01:13 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 23:00:04 -0300 Message-Id: <20220113020026.590-9-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 157/281] tiertexseq: 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Vittorio Giovara Signed-off-by: Vittorio Giovara Signed-off-by: James Almer --- libavformat/tiertexseq.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavformat/tiertexseq.c b/libavformat/tiertexseq.c index ecc15e4039..d06853d0d6 100644 --- a/libavformat/tiertexseq.c +++ b/libavformat/tiertexseq.c @@ -242,12 +242,11 @@ static int seq_read_header(AVFormatContext *s) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_id = AV_CODEC_ID_PCM_S16BE; st->codecpar->codec_tag = 0; /* no tag */ - st->codecpar->channels = 1; - st->codecpar->channel_layout = AV_CH_LAYOUT_MONO; + st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; st->codecpar->sample_rate = SEQ_SAMPLE_RATE; st->codecpar->bits_per_coded_sample = 16; - st->codecpar->bit_rate = st->codecpar->sample_rate * st->codecpar->bits_per_coded_sample * st->codecpar->channels; - st->codecpar->block_align = st->codecpar->channels * st->codecpar->bits_per_coded_sample / 8; + st->codecpar->bit_rate = st->codecpar->sample_rate * st->codecpar->bits_per_coded_sample * st->codecpar->ch_layout.nb_channels; + st->codecpar->block_align = st->codecpar->ch_layout.nb_channels * st->codecpar->bits_per_coded_sample / 8; return 0; } -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".