From patchwork Thu Jan 13 02:07:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 33522 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp45338iog; Wed, 12 Jan 2022 18:49:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4qWw0sm8iP6m25zCiovpAQygQ/ZKs0QHi9RdMouu5fDnTdewS0LNb3noE1uZQ8q1/eI+0 X-Received: by 2002:a17:907:2d26:: with SMTP id gs38mr1895318ejc.765.1642042140741; Wed, 12 Jan 2022 18:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642042140; cv=none; d=google.com; s=arc-20160816; b=Pe6z7iRSoe71ln9fq+pOJCVyIPd+3M+KWnRj1Pvk6IdAVyF7C5cyTfcahpYlV0cXea h8TWA9TCz4XSy/zTG7GU2d2yX7U2zuYBUcl73CsZvVnxHEKRPbE/TWka8ARfeCHfA227 OtLBBFu5iwDm0Y5dt0AyOXa0SKYWjxw3baJbIU5Ggd+oT/Sn+A51E/2UQHglAXYZ7JVy 4fF00PQ7UJlPgr4/IVe2DWUJR06UlDWFpixT3TyT8jxXcgOCOl9KJfrdg9DsHjyGUKaW UnXNAkHygZah6RtRi95M1TC/pS7QZieqCHz5xpXh9v1Mbofe/aMI4CHH2n5niSbSoyop pddg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=QHKkg8eDIGMqh3FNcX86liM/dAM8NSUAmzYFD1vK7p0=; b=BHTZV3UeFdKHZxQJMynKT8SDcXeV82PZIRAB9sbbbpimb/raLiPlUCI5FzEmi8fCWn xgvHqzlqxtBmGO0zyDOaUbmHgsRyqhY8E4edNW3DLLOs55yDuA4iSklqOXX6gzuth7Ti VdqKhyDd5zS6c1MMvHhUlTh16vKHU1lQCpT5MWHmYII2Q1TaevOj3ypk7FWEv1zhdcYQ xXK6A4zfRE/NsllNNOpqNWzGE8udovUGo3Ndokt2CEnGdy5BJG5+/ZJz5sFeo4Y6YqgP NgcR44UMPNQPti7y+nLs8+5m8u5xjzxgDBsbOmsbKntkd1pjmJ9IdEqmOHmD+W3cT6U2 IlEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=lhrMpyiD; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id hr32si1011291ejc.303.2022.01.12.18.49.00; Wed, 12 Jan 2022 18:49:00 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=lhrMpyiD; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E3B6C68BA00; Thu, 13 Jan 2022 04:07:53 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7C45168B9F1 for ; Thu, 13 Jan 2022 04:07:52 +0200 (EET) Received: by mail-qk1-f178.google.com with SMTP id h16so5626872qkp.3 for ; Wed, 12 Jan 2022 18:07:52 -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=VwKNT53Bsv6cEGUzR3aJJGLXRJHI6uabGmUkYuvVMiI=; b=lhrMpyiDsUrj28Vo8gWiS3qJ7l3u7ig1tzGrLgkBU23fnHmoVwQzeAWWD1WDSWiqrm anV42rEotyGqYfSx5ODUBAN/D2PJfWVItEEDkKdhad7HgzNWXoxMdFPqYdpqiczESw9e OhxjGSL4mnUfbIDv6lM+0DxKKlxDnx2lMjXV3E5Z1/QNWr8go7oKKw8L+KD1+Q7L+PH7 dUOUh9FVmEKQzM5rtCmIvM0Ng+2GCiq+V88GaixLMpPMGz7cKJ15qdVAeOU8EVLQQYnm 1a7kKLqAKDXNqSXhWjqs0FgwdiFt7ebXfaux1cDImdvZrtTJTGjVWrB9uBv7kqazc3t7 AiEQ== 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=VwKNT53Bsv6cEGUzR3aJJGLXRJHI6uabGmUkYuvVMiI=; b=fyD6pICf0LjxRFU5OWkp4+3nPv2hroB2aI6IgY4QCGKzg/14GVYmAO+4T1PLfUNE57 b6cINAkZlCfgjcNMF+ob9H90xWk44InVzUkILZqFucR47aHVZix+J+1fV7fS46sYoVPj IPEZHBbSLLhtVTViW6hJP6QUCEOTRdkLXO5Tn8d7C/LiGb1Ri/bVImfm97uPFV8ZTWON uTpoWb2WvlTZgytc3+TJZLt/CrFdQRPS9+Uf3MfKen7COP6U1lXIngzYP3A93/moBhBG zmbYFFg5eocRn4LMzhzCBBaSaXrLHdLC0y6/cUWIRPoVZY9r7Fc1KJlhVw/tydt/UQsY 1X1g== X-Gm-Message-State: AOAM530PyWev78HyOa3Gyy54OTAV3MPhSpwgAbOqRNg8W5s8kG/08PXp Vk7jCBpdp2b97/ZWTVj79OD42jXaCUs= X-Received: by 2002:a05:620a:199b:: with SMTP id bm27mr1846346qkb.404.1642039671038; Wed, 12 Jan 2022 18:07:51 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id a16sm1085946qta.13.2022.01.12.18.07.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 18:07:50 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 23:07:02 -0300 Message-Id: <20220113020713.801-19-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 258/281] siren: 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: rqSrbW1FsOpt Signed-off-by: James Almer --- libavcodec/siren.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/siren.c b/libavcodec/siren.c index bdb249144b..add1773069 100644 --- a/libavcodec/siren.c +++ b/libavcodec/siren.c @@ -398,8 +398,8 @@ static av_cold int siren_init(AVCodecContext *avctx) s->imdct_prev = s->imdct_buf[2]; s->window = s->imdct_buf[3]; - 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; avctx->sample_fmt = AV_SAMPLE_FMT_FLT; s->rate_control_possibilities = 16;