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 B8FAB42D13 for ; Thu, 13 Jan 2022 02:08:08 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C1A6568B1CE; Thu, 13 Jan 2022 03:53:35 +0200 (EET) Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1EEDD68A255 for ; Thu, 13 Jan 2022 03:53:32 +0200 (EET) Received: by mail-qv1-f52.google.com with SMTP id q4so5083136qvh.9 for ; Wed, 12 Jan 2022 17:53:31 -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=V39lZA9zYKA1bOefsutOkcFHlqijqQKAXdIAgZS6dIQ=; b=RYswmWoc2HqCFal6H0xBG3Ye9VDqNaP7TD+jXf263TGjRGqIY82yZhFrJIgTzJuqG5 EOBJHXGx5EFTVnjYjM0AIy7WwwZUdo9v+z2tJDHKbea6y9hYbeLHIRGNG+S4O7l7vNoA gUh++UMiB2QoYnlRsRlILX4k4zyFjZ1YYecHO/ziRv4mm2RKPt2eMO9ziS5Goeb41g8k S+bPbNZQTzApYlBA1vx3DwV1kaK62n2obvlh/ZXehoVQ3j6oS7w9Zi44Xq0Z7mRCVcAo URi9iLjKScgszobOU/s4jmzNJyLAMGXHjfW4y8+uwfkFIMraROpHuwgy7K/wqIUsyou5 OciA== 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=V39lZA9zYKA1bOefsutOkcFHlqijqQKAXdIAgZS6dIQ=; b=0sYmIlwqoiq1JMzn2BOCa/Zy7rJBBH2iMyKPEut7hwniFCt5uixX1GwysgTyJ2Bw7C HGCA5yW+SLkDZv6/6nxjbJOeWex+LstccxK9UZxCaLFzl94BGUDxX9mW6c+rH/V5oG73 i++DC8omUfxrOPMIBmzdBcKAshUin7bHBfY1DI0gHWW+XFMZHUwpG7HHNyP5n0qfN1+3 BDx/os+xZca5o+xizewzOTSRFvncaJY6XkR2XUbajl1rwF7H7lL17llpaIg8x0u3AWHb Et4gb5BVoovwmPN26lgDTzDdKmX8u2wZrxxmY3G0ajog77tiy/CbAa/dn3eaUvavFWGg aZFg== X-Gm-Message-State: AOAM530DaEpfMwk9UeNANnjCbO2e0SF0baVbrJJMgvPnem8NZT6FjSv8 biV2aTaj+kUlndWZvI+ifyf0Diugz3U= X-Google-Smtp-Source: ABdhPJxiTSbz49E+rVd6/CCS239uW2JoGGOUC88g/rsJD8hGTljPH0s86XhjKsP1KMmlX8sPydW6Cg== X-Received: by 2002:a05:6214:4002:: with SMTP id kd2mr2291099qvb.35.1642038810724; Wed, 12 Jan 2022 17:53:30 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id i21sm1204710qti.31.2022.01.12.17.53.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 17:53:30 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 22:50:37 -0300 Message-Id: <20220113015101.4-76-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 075/281] idcin: 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/idcin.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/idcin.c b/libavformat/idcin.c index b7402107da..c92ed2c237 100644 --- a/libavformat/idcin.c +++ b/libavformat/idcin.c @@ -218,9 +218,7 @@ static int idcin_read_header(AVFormatContext *s) idcin->audio_stream_index = st->index; st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_tag = 1; - st->codecpar->channels = channels; - st->codecpar->channel_layout = channels > 1 ? AV_CH_LAYOUT_STEREO : - AV_CH_LAYOUT_MONO; + av_channel_layout_default(&st->codecpar->ch_layout, channels); st->codecpar->sample_rate = sample_rate; st->codecpar->bits_per_coded_sample = bytes_per_sample * 8; st->codecpar->bit_rate = sample_rate * bytes_per_sample * 8 * channels; -- 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".