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 BD60C42D54 for ; Thu, 13 Jan 2022 02:07:39 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 03C5868AEC5; Thu, 13 Jan 2022 03:53:33 +0200 (EET) Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BA04D68B1B7 for ; Thu, 13 Jan 2022 03:53:29 +0200 (EET) Received: by mail-qv1-f49.google.com with SMTP id t7so5147894qvj.0 for ; Wed, 12 Jan 2022 17:53:29 -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=ycLIY+RH6c2EqJanObgaufvIDahn6MAyCl2VpSBwX2o=; b=bDG6hXJreYwftewRQhtl2G4Je1CieJdGV7XiHmORrVQaPphwmE5c0aEJGjALdf0Oi4 bI22elaE6KCUBloPegErdxwD8R0yln0MAoEGFn2iRltbMOVmd9fTqRTYGt4camGFKdnT gwu1R9PtvP4t6Ej9sJTTV4145NZdrjh0Sd0C9IyQRhW1abG7bhxshr2+IokXB3/3aj80 dXe/hSV5FwmSkeLp9ec9dmNmQ6Ysgz3ZZhyQnHG7iPEj4pSBiBixYjPO2K4niIPoRc5j ebRe6RzBa8Ndj2jJczJiS+aMWLMYDKgyvC6x+tR62VE2IjFOUIJjqI3lztOUNtzREDuO F2NA== 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=ycLIY+RH6c2EqJanObgaufvIDahn6MAyCl2VpSBwX2o=; b=H6or0Z9zq99UjWBG7b7vDZuf2GJp00FjS7xs1QkWFd7eeFmluXZtBblW1mYAfXFDUB R+BCdPqO9CchjIqcv8Jh3bPsXB/m7X/z7W9X1B7AgClDV8jNk1COxfCif19HGJru4qyb XSFonTNxcWcSipq4MpCCoAzaMll8G6ke7v6LEmMFhlUQf2wDtEp65SrFo9UkJYuL0VUa PkRDdp6AlH4ojliG8VV+yhLc6oopRmhjC6KZSn6LQIupkziLGCp5Ob11pEBQJXESK00+ Ufklr12C0Rq70LpPNiZebhgmQfj9PgvKIpG0BaQUMv6LCpsgRwBM41WHEl5UR5U1A3Ho NhLQ== X-Gm-Message-State: AOAM533k2OzMmASSsEGiZNgx8h3gv7YNGC8PHjAM5X4IIxFXnAtB0LNe LBL9Z/5sD+V8eLzUshiUg55pBAggW30= X-Google-Smtp-Source: ABdhPJxpuP6YUxYrWnUiZBsCElbY31NuPWSNhLLlyIs4biUn0BGT4C3PWC2oQ1IJwNsPFC8swg5YWg== X-Received: by 2002:a05:6214:1c42:: with SMTP id if2mr2119693qvb.17.1642038808326; Wed, 12 Jan 2022 17:53:28 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id i21sm1204710qti.31.2022.01.12.17.53.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 17:53:28 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 22:50:35 -0300 Message-Id: <20220113015101.4-74-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 073/281] hcom: 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/hcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/hcom.c b/libavformat/hcom.c index b7fb7314c8..579f0b707e 100644 --- a/libavformat/hcom.c +++ b/libavformat/hcom.c @@ -62,7 +62,8 @@ static int hcom_read_header(AVFormatContext *s) return AVERROR(ENOMEM); st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; - st->codecpar->channels = 1; + st->codecpar->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; + st->codecpar->ch_layout.nb_channels = 1; st->codecpar->sample_rate = 22050 / divisor; st->codecpar->codec_id = AV_CODEC_ID_HCOM; st->codecpar->bits_per_coded_sample = 8; -- 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".