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 0278742CDE for ; Thu, 13 Jan 2022 02:02:05 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0D68E68B0C7; Thu, 13 Jan 2022 03:53:03 +0200 (EET) Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 783DB68B0B1 for ; Thu, 13 Jan 2022 03:52:54 +0200 (EET) Received: by mail-qv1-f42.google.com with SMTP id q3so5108444qvc.7 for ; Wed, 12 Jan 2022 17:52:54 -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=rCg3ZXxMpOC/tW09gKYuuUYKKFCUXik5NRntQnpD6s8=; b=lQYn++vjfJ1Vi4Pl35ooC71d2XpEXGc7Ryaa1GZGbkHrOb0i7Hphaa01mJnv7m6r40 QrtVcCN4/tpaQiGAppKFzBrJc1BiQf1VHTr/OCEGuujiRyv9qqjgu/yt+axdCjerCDos hTPBfawRbcnHNh6rsPwbmXnXBn6QHLDbrYv3+7txSBuK1A9MNKGccEc2LyrMAvKflJpb atRdXSLQbvkQmkXm3qUHbszFFsJBAukElGtqp0AaPgDJ2lriNpM5m1mSvNI8tz+fIvQ9 0EShgV7FpR0WRJ+HeFTXejBGmCXhY/AlYu36izQrzh5RU4LDu2LnyDsw6c2+ACu5eiY3 oEPQ== 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=rCg3ZXxMpOC/tW09gKYuuUYKKFCUXik5NRntQnpD6s8=; b=Etkj3bY70magpdMiqB2UaU4A2NLUE1kRT8sVt30qyKZVhCzxF4VXO6RTJJlTc0aoja euvC7t4kAtLa5McNMKi/pBggbg4yw2w1HjBPa0Xz87noovUDsLSUYZsBrlOGfpnhouPB htuqdoe5JhLQzJlBX7Q81wSsF7CUWaH1BcUaiFhbIVJCxR/WRDmmimtIMxqoADKYdo+g XYGBnEVULGSpc0N1UmRmr7i8xSE4dSgL4jnyZaf4aQXVdadVdQJOqoanJrt79+qyuejJ bPsucD4eR6RJzSNSYbIkZqj/sBkgWpejFxMNK19Omt3DPOKdnrAHoCnM2Diw/ellSeEJ kwSA== X-Gm-Message-State: AOAM531ouiZS3NyC6h3FYVvuBV/80X0faRCOYkMTSTrn1rh+dmZUc2It mrO3YJ01NmX3P9hXk3EOakDTcdUD2dQ= X-Google-Smtp-Source: ABdhPJyBrl4W4A/DFG7u5DgM+kpHSNYHuf60+DuSrHbU4Onqb+C2TrSb9B6nHBE4FE4a7EpsVHfK/Q== X-Received: by 2002:a05:6214:d01:: with SMTP id 1mr2181038qvh.34.1642038773098; Wed, 12 Jan 2022 17:52:53 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id i21sm1204710qti.31.2022.01.12.17.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 17:52:52 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 22:50:06 -0300 Message-Id: <20220113015101.4-45-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 044/281] codec2: 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: Anton Khirnov Signed-off-by: James Almer --- libavformat/codec2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/codec2.c b/libavformat/codec2.c index 0b992836b3..9d7f424292 100644 --- a/libavformat/codec2.c +++ b/libavformat/codec2.c @@ -129,9 +129,8 @@ static int codec2_read_header_common(AVFormatContext *s, AVStream *st) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_id = AV_CODEC_ID_CODEC2; st->codecpar->sample_rate = 8000; - st->codecpar->channels = 1; st->codecpar->format = AV_SAMPLE_FMT_S16; - st->codecpar->channel_layout = AV_CH_LAYOUT_MONO; + st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; st->codecpar->bit_rate = codec2_mode_bit_rate(s, mode); st->codecpar->frame_size = codec2_mode_frame_size(s, mode); st->codecpar->block_align = codec2_mode_block_align(s, mode); -- 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".