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 9916249190 for ; Wed, 6 Mar 2024 07:21:12 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1C51168CBF7; Wed, 6 Mar 2024 09:20:53 +0200 (EET) Received: from mail-ot1-f98.google.com (mail-ot1-f98.google.com [209.85.210.98]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 72CBB68C3D2 for ; Wed, 6 Mar 2024 09:20:44 +0200 (EET) Received: by mail-ot1-f98.google.com with SMTP id 46e09a7af769-6e4e608a374so329259a34.3 for ; Tue, 05 Mar 2024 23:20:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proxyid.net; s=google; t=1709709642; x=1710314442; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sQbb5bwlotn/t6D+e1WPLj9sPk+i9y92qD3vhmWGEW8=; b=EUiAegL8zfkEIYGeQnH+x8sH7oJu0g36p6b+hkUa3m0OBRLkRrgorEKzhkaJDxhWBX KBhbUXTuoDYITxO3uLIYgokWm7iDmuFHTGf2hHPqomS8nWHKnO/JGynpqK2kudzytlDH Sxh1liMvQ4VCXfZ2YqILCSROMzE5WvLoP8nK16jtIXcM9WOzifhHR5ySbe8t8JUcohPC R9EXroP2bEPlReagM5fYKnxFfW/4dOKq6KSUw1da2g+pK74yaCjtw+VRrQMEJd68U08B XnNEcUtUujgRLNOiYXDekdLs2F80xW/iR2CGm2biXkNjrhcSNmGUydC70tAbI1V9woOo 1f0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709709642; x=1710314442; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sQbb5bwlotn/t6D+e1WPLj9sPk+i9y92qD3vhmWGEW8=; b=Szqm3uHbXAcSODKzXoiThcaQLhlZS24NZQabaySgWbFOSqyKwDLmtMmnU7FYp4fzvi ZS8xfbbnzdVWGkMDXraY+4K+rHR2iQ1ejD0qVRTaLtVPx4A7gGlguF2WrF8pEkxufhWO 17hNknpRHEefuWafNpS2dKEZ0HAzsPltTR3SZQFjA4KLDYQCFnjIPTWWt/zV7Oov+v++ xt5sbL1+uw8vLQDcIVVJJJeS5YKRSLqEFEbS8yf6mhWPACU0n2ieCSwhEzc6V/fROPfg 2OCk6ocZgumep+4PL90Yy5J28+umpXWprlZkKTSFc/DzQvWZbGw1XWMYvPWG7SDb05OP GcSA== X-Gm-Message-State: AOJu0YydyZdtVfBEaImZ+pfEYyh1XGmA9+O3Tc64nsu0JgabxV1n/8nL DP+tosa8wtMnR62YpFAOUmGBiPNAC1T2wXz2shHppPUDVVJFKMfFxZT82dwlhugHqocgXj4os3q gWIys9u6Y/nQr64Cera9V+oN9Pm+GjyejeoeJ7mDy X-Google-Smtp-Source: AGHT+IHiuENJlTbnY3GMX3byJkWvFBj1HN/FvxtnUc0xXk9HBwHLasWfK5RITOz99COXVcVRvZJK9YQul9pp X-Received: by 2002:a05:6830:1e41:b0:6e4:ea7f:16f2 with SMTP id e1-20020a0568301e4100b006e4ea7f16f2mr4620620otj.18.1709709642586; Tue, 05 Mar 2024 23:20:42 -0800 (PST) Received: from wsx-cc1-001.. (c-76-141-249-38.hsd1.il.comcast.net. [76.141.249.38]) by smtp-relay.gmail.com with ESMTPS id s5-20020a63ff45000000b005dc846d791csm553686pgk.14.2024.03.05.23.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 23:20:42 -0800 (PST) X-Relaying-Domain: proxyid.net From: Marth64 To: ffmpeg-devel@ffmpeg.org Date: Wed, 6 Mar 2024 01:19:13 -0600 Message-Id: <20240306071913.2735832-3-marth64@proxyid.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240306071913.2735832-1-marth64@proxyid.net> References: <20240306071913.2735832-1-marth64@proxyid.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] avformat/dvdvideodec: assign mono channel layout explicitly 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 Cc: Marth64 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: Signed-off-by: Marth64 --- libavformat/dvdvideodec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c index 2c7ffdd148..6136060288 100644 --- a/libavformat/dvdvideodec.c +++ b/libavformat/dvdvideodec.c @@ -1142,7 +1142,9 @@ static int dvdvideo_audio_stream_analyze(AVFormatContext *s, audio_attr_t audio_ return AVERROR_INVALIDDATA; } - if (nb_channels == 2) + if (nb_channels == 1) + ch_layout = (AVChannelLayout) AV_CHANNEL_LAYOUT_MONO; + else if (nb_channels == 2) ch_layout = (AVChannelLayout) AV_CHANNEL_LAYOUT_STEREO; else if (nb_channels == 6) ch_layout = (AVChannelLayout) AV_CHANNEL_LAYOUT_5POINT1; -- 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".