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 9209D42E31 for ; Thu, 13 Jan 2022 02:25:08 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 261B868B442; Thu, 13 Jan 2022 04:01:07 +0200 (EET) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 55B5B68B43B for ; Thu, 13 Jan 2022 04:01:06 +0200 (EET) Received: by mail-qk1-f177.google.com with SMTP id bl18so5579571qkb.5 for ; Wed, 12 Jan 2022 18:01:06 -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=/Qx0X7lO5Up6Iq7OpSOHI80C2zfAY605LLV7/nL2Xpg=; b=gkcsE1MmLLY6hiSHAbCTah5bfyCtSCb4opydeHB5pn+oRP5+A9WqvwdmiUO3KbAdPV JizJ1/HYuFFIuH8TiYOFF7uNLYiWeDGIZfSUTeig3UOZvFOjmCaSQgf5vWU8ruC3eH4o QBsE7L5pBbEdAM7yio7frqMpj2PZlneRowcrkNBDvsfP7C313uhllzuTYSpOtffAg786 PZwYo2cr+87CX5RpAuMo/2IREZcw7sxqPJBk0rrzL6FJ3gTHAOTh2v/u5kb5EirrWiyo B8pRY35Usc/l8hjQ76kjrsp+ImlLsrHOP8xJpUnSj0nfCWXuqaMjWhakL+T9zWx9T4n6 XiNQ== 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=/Qx0X7lO5Up6Iq7OpSOHI80C2zfAY605LLV7/nL2Xpg=; b=mVwGXuvR/L1i14kqRmIa1DdTeCOJdPgy362AI2wVzr2AhqjiyHUulN5XfJMqlHc0Ag dCNVYhrkIcqiSlT9zlYDCsHidUtNzKyiHnCrWOJ0zqSd+1JSh7/Q/nJ7BZqD36Q1pUKE pBjgSp/ANVWkT7rTM8UtwP7tpoJ8MyjUlpE1BEuaDBE+1ewmyJge8zq7fBHmuZJzVEvo AUpcdr1V8s+QVOVx5sCuhw7m6oh8VNRSqdWd5qYUM0Yk1ZVNaCKfUDFMxDLxbB11JBFN 8rSVNGtoWpVmI7oYnejzhhffZwzhGQElHNafx4YCNHCHRA841m4m7Jn/2NYmv40B7F8/ 09Yg== X-Gm-Message-State: AOAM531t0ooZwzGALdbI2wGj6RfLt1XD3nEMK/1glRZ56sWpa2c6ffjN v9l9sGFNLS39tCLpqHEaJxY/YSG+QgQ= X-Google-Smtp-Source: ABdhPJxPvXYphlfMGfl4EKf43oLokdnOjYURObW3sN43SPGA2M2z/R2t2I5Zqbztvq0hjr1pAxUAPw== X-Received: by 2002:a05:620a:bd6:: with SMTP id s22mr1811765qki.348.1642039264896; Wed, 12 Jan 2022 18:01:04 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id y17sm1182232qtj.75.2022.01.12.18.01.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 18:01:04 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 22:59:57 -0300 Message-Id: <20220113020026.590-2-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 150/281] sol: 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/sol.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/sol.c b/libavformat/sol.c index 42498492b6..b92cfb36fe 100644 --- a/libavformat/sol.c +++ b/libavformat/sol.c @@ -113,9 +113,7 @@ static int sol_read_header(AVFormatContext *s) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_tag = id; st->codecpar->codec_id = codec; - st->codecpar->channels = channels; - st->codecpar->channel_layout = channels == 1 ? AV_CH_LAYOUT_MONO : - AV_CH_LAYOUT_STEREO; + av_channel_layout_default(&st->codecpar->ch_layout,channels); st->codecpar->sample_rate = rate; avpriv_set_pts_info(st, 64, 1, rate); return 0; -- 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".