From patchwork Thu Jan 13 02:00:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 33448 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp35881iog; Wed, 12 Jan 2022 18:30:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+Hir1pMuIhslXg8X/NGz7aZ9pUKr4IIAHF7iuRNImpDnqTpWCRxOQwOYGCACk6Q9C8PKZ X-Received: by 2002:aa7:c243:: with SMTP id y3mr2270594edo.364.1642041049935; Wed, 12 Jan 2022 18:30:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642041049; cv=none; d=google.com; s=arc-20160816; b=NGoqnrjUnHvObSnL7xNy0f3pCcbFyjtmLib1x7MuFBOMnec1vQJWNOcbMIh+WH5hss Ygae32C/+i6n76YLewSEEGRy4shDWWUiSnfN4SCaIqbuHrQ74oEwMuwfgQHFPdvs2hCp b3moJuyubzOmNpbUifepRr3r4yeu3TXzsyjd6Emk/Ne363lVm5F2Zy9nj1c7Kus2J/a2 z/lBm+fwdtLSGqxrccx2rMBLeGKvDcJ5cH7W0fKBvecJkEM/cLp9ttt03NN2m/y05AAx WzjFLIk77v+Zmjrs34W79H/KrPj6xBOuAJqViwQL/ivoa+WjVI6d+SDoSVnt7eZbFxKV Mnww== 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=4dsh5igBkpjaVkTPcLL8jmETSLnG8LyE/snztw+Zsuw=; b=x77GhJkHkEC15Ff0r5p4SNZczFOOonWxMPvZbD9cNi7idPKAoxiKD1iSjtDzkAGKPP WtNbvmyhqmXaItN4jRhOdsq3RnTNra0vx3jvgACvXUlnUx2J3ufHHdreNLfHNTKIjt6r xbWw/8ZCdxI9Xy4t/69nWhoIIvEUPAhppuhldWjxnM0AZG3yJMW5QGcGto+Q61oHhd37 0EPA0daI5JpN3WqpD9EtJ+pIbg6I0hhGUuDL5gCruMovbrj1pmCabjo8zS4WNRUzTyYV G5fUbE5H/hrTtQ1zUk4EamNfIlcWstCUcb6m1UQlIX+jHwppW85v9jbmht01yCCadyMq txOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=W3IbenwS; 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 o17si866649ejy.466.2022.01.12.18.30.49; Wed, 12 Jan 2022 18:30:49 -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=W3IbenwS; 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 14B1768B554; Thu, 13 Jan 2022 04:01:41 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 329A168B50A for ; Thu, 13 Jan 2022 04:01:37 +0200 (EET) Received: by mail-qt1-f176.google.com with SMTP id v7so5325876qtw.13 for ; Wed, 12 Jan 2022 18:01:37 -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=KpezVH0VtdwkxeNNzBtCxfkUn6/WqJI0/gQHF27H2Mo=; b=W3IbenwSYupJ7OanDqPsdqsT0KvH9Xug50kTa7L1CbPl3oMCJqNsKkUsahWJhTCfOD +RK7LDK60NUGbYfiTJ+yCR1hxHtadCxFbJxmGFRI4nsVTSs+ShAJUS/7Qs+YRzxaK5rf LekzO9WkDn2EeCEQrCOZGTf7QgM8L2Jd6R7wl5OuwZBXQ1DtHJPqU8hSMU1Pt1qGofOi NGlZSoU8de5gyNck0uiuVuuNZNfcYjX5E0NE2Ti2vhoXhZAfQkEMnKZpiMMN/OWzNnNR lczRRDqJ0Zg5nflPCLOu9rlVYaztPB7IUHk3p/dMAMlK9trkiI1OwZBfHd3+zvd8KCYj dbGw== 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=KpezVH0VtdwkxeNNzBtCxfkUn6/WqJI0/gQHF27H2Mo=; b=3XyW4Gv6GoY0LBMH8xQbv3TgKIBrJfWLA4IJ1hhQWzW1yyektxH64n1+49dip9d/xP eZJtwwm+hd9wdIseERb/hShGQ3TNGvrlVgIJ/ShBtbF2L39A4whidbZdCW03ffeMLjHj CDVGnO92mHB4HTy0+f7Ti9/ELisUwhlNK2lTM/GCraKVbgqW/sQ8IeDS88jdcGkBq0IZ +22zxi4vpBXTIDuFLZ8ARJfeonrLAx++l4ibTDfuBPER4dBr0E06TDjIxeQV8RTDCexN onGd2HTjpAcKKuClNWylzXMheVQ8fU0bN5VRphGWoRCSWm/PYux4M8s040B+AatECePZ CLJw== X-Gm-Message-State: AOAM532EVj4odBfFZtfluVIkRmOtGRND8HVaXBfhY9H1cmq4IsXwz/I7 mZUXe0QajGqlzqA6U5P2gDbKAV8BNJI= X-Received: by 2002:ac8:1082:: with SMTP id a2mr2006738qtj.673.1642039295769; Wed, 12 Jan 2022 18:01:35 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id y17sm1182232qtj.75.2022.01.12.18.01.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 18:01:35 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 23:00:20 -0300 Message-Id: <20220113020026.590-25-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 173/281] xmv: 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: 5396R2BCNJx2 From: Vittorio Giovara Signed-off-by: Vittorio Giovara Signed-off-by: James Almer --- libavformat/xmv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/xmv.c b/libavformat/xmv.c index ec21a4f853..fd0dedb637 100644 --- a/libavformat/xmv.c +++ b/libavformat/xmv.c @@ -332,7 +332,8 @@ static int xmv_process_packet_header(AVFormatContext *s) ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; ast->codecpar->codec_id = packet->codec_id; ast->codecpar->codec_tag = packet->compression; - ast->codecpar->channels = packet->channels; + ast->codecpar->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; + ast->codecpar->ch_layout.nb_channels = packet->channels; ast->codecpar->sample_rate = packet->sample_rate; ast->codecpar->bits_per_coded_sample = packet->bits_per_sample; ast->codecpar->bit_rate = packet->bit_rate;