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 EA0CD42E67 for ; Thu, 13 Jan 2022 02:39:33 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0BFC068B845; Thu, 13 Jan 2022 04:05:45 +0200 (EET) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8CA2068B808 for ; Thu, 13 Jan 2022 04:05:40 +0200 (EET) Received: by mail-qk1-f180.google.com with SMTP id t24so5555186qkg.11 for ; Wed, 12 Jan 2022 18:05:40 -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=E4P45RN7xBR9GJv7GgUNlHjFRO0QjZr5gggcCOgO3Ss=; b=laAYOtJvmEYpCEOEPiPlJuAGmzfBUprMlTGIrXIabZ8npPbTRvdfM/ZxFtwZ8M9TSh eplYL3fGn4bIbCdbPD+w8sOMPvWSGUsoNEoVKp0EQQuH+K3n+16nwEOzKN7NXioFFE0O yLclNgSBT6wdzWwesw+d9mKiRw5yuYcxytgs4t+/WQpI6NFLtL2C91f0a9V86V0r6qgd N9xFzV6fLXeg38iYPhl0cbatwNbQAYQe5AhXLNgr0aqrJ8368Ko+f0klpVUk5QEqz7Wz N8zWQJdXRmN8rpDCAfIyeYJcG+DYzH/LL/y7PSF1NvTG85SZarEVtJD/LYGc7CpTApJm YmrA== 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=E4P45RN7xBR9GJv7GgUNlHjFRO0QjZr5gggcCOgO3Ss=; b=tck3aQcr4dsEJ77fHa+GztXpy1OoHizXjJCFnMnu8vxoBenM72UGdT+ME7FQpDvm/J gdl+iMvircTxvOC9O32j5Hw892U+0hTjcwzyNhpkqIKIZ56QlqTwmZpLZmx8PlYBw6I8 Hj2+g1GmU7xt9GoCHzVbPkHfapQnY67fitg52m5zBnKquROka+2oytuEio5HxeU7BaZu DWxGf/lFdPH+u7uw3R3qS4yUAXEo0mUtwjapsEqH72fq81X8aakutmftT6b+Tj+QYlui eSKXnh4SjU+OwkvEXpwI0eqnzBkuCNyU1Bq4MTxwMXxlCSAFat/jIyjDnIOGEUh0F43M spVQ== X-Gm-Message-State: AOAM533IhvRZWsdGqNJSPz4gROQqZY8nogWo3/Joz95o2iUsBiusMx3Z JaynNVnMaP1DIhd5cIh9kUia39ilZMc= X-Google-Smtp-Source: ABdhPJxoBsBo+1tdWF0TMTKaAqLc3tckl060YvYpZbPo3lB7eY/MfD2Vz3LaSHwROu48t6CdwbJwSw== X-Received: by 2002:a05:620a:4305:: with SMTP id u5mr1811474qko.577.1642039538914; Wed, 12 Jan 2022 18:05:38 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id k9sm1264556qko.29.2022.01.12.18.05.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 18:05:38 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 23:04:55 -0300 Message-Id: <20220113020518.730-7-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 216/281] gsmdec: 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: Vittorio Giovara Signed-off-by: James Almer --- libavcodec/gsmdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/gsmdec.c b/libavcodec/gsmdec.c index c169112311..e3c87af513 100644 --- a/libavcodec/gsmdec.c +++ b/libavcodec/gsmdec.c @@ -34,8 +34,8 @@ static av_cold int gsm_init(AVCodecContext *avctx) { - avctx->channels = 1; - avctx->channel_layout = AV_CH_LAYOUT_MONO; + av_channel_layout_uninit(&avctx->ch_layout); + avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; if (!avctx->sample_rate) avctx->sample_rate = 8000; avctx->sample_fmt = AV_SAMPLE_FMT_S16; -- 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".