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 5FE1742D86 for ; Thu, 13 Jan 2022 02:12:56 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 52FEB68B254; Thu, 13 Jan 2022 03:56:39 +0200 (EET) Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 79D4568B237 for ; Thu, 13 Jan 2022 03:56:31 +0200 (EET) Received: by mail-qt1-f175.google.com with SMTP id c7so1749228qtc.11 for ; Wed, 12 Jan 2022 17:56:31 -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=YLYgiKsmDIRJxTLJ5JezU540PLaA+MWAsAjegc0hWPA=; b=Hi+nnkCx1qSPaiCyaA0JyfNYZmLeTTEX7Na9B8uLbQzQPbN/r3+lh1pMl3EwM+v1wF 1vl6Prgqj4r6spDFC+lh9XPRHAO7lXG06lHlwmO7I50QfwjehqxDNMpJ9Px3HwVVM2GW A165JrhQI6PcnoyiYwf0jDs9KNPE/2lrjhxRvlYA5oHLLS7UhlDC6/xSmteXuRAQD3oh cWfPaJwxdvrhrqcVmqU/XRNEAs18XvnwPHqmEfqFoZ4sW/PJ8mTXo2qAoNQlubM+0YNw tuVSvDCK7kDSHaFijdKbLER3AS+EurxT2NJUgibrB7JJLzEmuLwG61zj1CEwtBfjaTQV ZAHA== 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=YLYgiKsmDIRJxTLJ5JezU540PLaA+MWAsAjegc0hWPA=; b=tSRrmhoIHn+2ObzF+VyfV/4ZtDakGRm+IcN3EfSrhqaXh6rM+Z9vJ86SbGnOCZADlf oq85TgIuXb3GMyfkEEYxikdvjsK07Rg5oV/95R3o7aHg/qYYGKw5x9LoUnG/ir0uKBPZ A3HLrOlHD/aTQH7UFQEkTfPCWAW/Q4CUwgWvja2kWl5uoTeHIRlqi71rjnOvNtXFO4MR 7OrHRSC6DL2+Kzvh+t3h0SVcLwcVNJFVEyQK49ZWI6Iqm5Mhk38gQtzszDMrohRg2Gsp Lm4xuepK2Fz1OVqItHrWChYHNtnUwx3Tlfs8agn9OQBaJnLMnz4qctmmoAnorb8JeyxT /big== X-Gm-Message-State: AOAM530Xhktw/RN7XQP3qSCvewhz721MJgLVLovLIMCSjTMRCuLmxMth 4uxXOQWRJq0GyZ3o+8Qs7v/t7PmQQEk= X-Google-Smtp-Source: ABdhPJxfSToJ1vKMKi/gbsbj8qpv8fw8V4BFC4/Mj3+7Io2A/3ZAZDvYfq0TlZdpdqYc0skvtvAUQA== X-Received: by 2002:ac8:5809:: with SMTP id g9mr2075923qtg.20.1642038990117; Wed, 12 Jan 2022 17:56:30 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id t11sm906506qkm.77.2022.01.12.17.56.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 17:56:29 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 22:55:46 -0300 Message-Id: <20220113015612.448-5-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 093/281] mm: 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/mm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/mm.c b/libavformat/mm.c index d1acfef445..1d44f41a94 100644 --- a/libavformat/mm.c +++ b/libavformat/mm.c @@ -124,8 +124,7 @@ static int read_header(AVFormatContext *s) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_tag = 0; /* no fourcc */ st->codecpar->codec_id = AV_CODEC_ID_PCM_U8; - 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 = 8000; avpriv_set_pts_info(st, 64, 1, 8000); /* 8000 hz */ } -- 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".