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 2FAEF42D35 for ; Thu, 13 Jan 2022 02:06:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2DAA468B1B2; Thu, 13 Jan 2022 03:53:28 +0200 (EET) Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2C8EB68B19A for ; Thu, 13 Jan 2022 03:53:26 +0200 (EET) Received: by mail-qv1-f51.google.com with SMTP id q4so5082913qvh.9 for ; Wed, 12 Jan 2022 17:53:26 -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=Y8ar6jsCmRVRMkOjUHvjuGKFNXdgBgYwn1iLyp5iLcQ=; b=nycaFYtX9/alXuHyD2PN5DMh9Zom+/CxiP9T9hivAEo2AASeXxfIPT9YoH9f0U5Krh U+uCwRKBsg5Sj0KQIbXvCwnUCmEynrtAGPxB6ujuHlie7GW5RMbExElui8R0blXj1fsy JLmqKN5brvGxVNpeGi0xSeqLh14xl3+/ptnnKJjI7MLocxTN1vAH2drTtl/7Wqt+cD/7 nqw0PAJ8Ann6LEGMkkuxgBEI4HO0xInTF9eSvU4GyrE+Gbss9bFPy23Bghwj0NW1hQ1Q Rc7bHFii1a+IOjmB20erO4k9q7dih8KehRjigbv7JrQzge+xPBhcW0YnL+mkcuPB7Lf2 rtRA== 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=Y8ar6jsCmRVRMkOjUHvjuGKFNXdgBgYwn1iLyp5iLcQ=; b=h14HETk7QLt9Gvg8triqn/7Umo5c66kua83pKWJetHlSCJ+mWYmFwdAHbs1r8WMVMP DD6J2utDVMOPc1JNtUn9c2hQeDlzBPA4hIfA583xbQZSlGEfEgPwpxBwVRGY2o4+skdh ah3UDI4KVdQB9tMCMMDiSZ+rlA1jgf/LILjwbeSie7siMkgaBNamEZTCi8A8/DCs/JPM Aad91yyoANqJb/SN0t72Y0bxhs8104lGfBcWTELKTX5/xdEQN2bsfPG8fYa8w8d+lrOG CoHb2IVu33mldCKp5E0pJQWMzaqadhkaecXqBXkfcBEUPgLJ+A2LOjA56fROHO7Cf5Bz V6xw== X-Gm-Message-State: AOAM531YbHo1m5BiELu3UY2zMaA/l8hFIeD+Fwcbqqr58bqa8FSDUhZJ 3jZOjUyIF+5aotthPNk3WaUd6Z/28pM= X-Google-Smtp-Source: ABdhPJzU4e8nDHjohMzAo3kJTG1u8JqdoJJw8m32YYp47gD/NfXvazDjv203ouTIpCUr+KkYLTlDrw== X-Received: by 2002:a05:6214:2341:: with SMTP id hu1mr2332753qvb.78.1642038804719; Wed, 12 Jan 2022 17:53:24 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id i21sm1204710qti.31.2022.01.12.17.53.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 17:53:24 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 22:50:32 -0300 Message-Id: <20220113015101.4-71-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 070/281] gsm: 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/gsmdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/gsmdec.c b/libavformat/gsmdec.c index e14e9aa217..09dc0e0fb3 100644 --- a/libavformat/gsmdec.c +++ b/libavformat/gsmdec.c @@ -79,8 +79,7 @@ static int gsm_read_header(AVFormatContext *s) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_id = s->iformat->raw_codec_id; - 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 = c->sample_rate; st->codecpar->bit_rate = GSM_BLOCK_SIZE * 8 * c->sample_rate / GSM_BLOCK_SAMPLES; -- 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".