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 2BB184440F for ; Fri, 9 Sep 2022 12:03:57 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1865F68BAE1; Fri, 9 Sep 2022 15:03:55 +0300 (EEST) Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A54A568BA7C for ; Fri, 9 Sep 2022 15:03:49 +0300 (EEST) Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-127dca21a7dso3220131fac.12 for ; Fri, 09 Sep 2022 05:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=onGO3h2H/ProCV9WMer1i+SgIRj/9AZqPIdSeAiWsqQ=; b=CkMcL9F+Mhi1Doxe/TxEg57e3KQqyMpFMax7xh0P+jDND6jJ1exhYRQXoni4KIOJLS bg8+KhVcaLSL0nniEragFOypatJFAVjfxuuW5K+ycMQXLnodWpBmLah3vZq7sbG/pPxf Twmr6EL2/OVb+h4gJxAedIb5wdsTJYTEde5N0aR0drfu4KkySnIKJGhbe7ZDnJWbon1U WEx1iQh78dp2uX2P/BrM1APJNl8adTqzkdo/0Xwv6+DWHDp+cQK8kLHA3OjO1QWFv2QR V5CGzCBOEyk/Vkwyc93CA1nFCfG6XMnDiv5Xk6Id4k4cZ/lktOOzfoOGcRizi/LSpcpu SxDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=onGO3h2H/ProCV9WMer1i+SgIRj/9AZqPIdSeAiWsqQ=; b=RJIGOxKaJM1cQxpC6ayLVDtt3QvE71kESOrz6XRU73OEWNFwgWIl1BAf3KWT+bKyRd 6ITc3zV8cUsDN3h+MRaF9RyZz17fJYqzELV3wePfZC8jNSLK0rTuvo8YpTHlsGaK39vP GMD896wIssZm9J+PG0Lf9xYXYLR/4dDDMyd32mJvdZBh83WEhcxN7N20JlJxoeNHlmMu T55PP6paK37V6bKECfm5KbEywRCqG369QJQgU7OG3j6/MvE+eVzmDji2TQbzpJtFDktP zzXr2r3p9faKbzTc/FKoiFBmd3sRCHMZg5k7n/Rfs/HlK2V3g0jmz9ZCtv/rLWZe1Hs+ r5qQ== X-Gm-Message-State: ACgBeo3EI966xzHDyZXJ5U6n015k5QW3qaaAdMJ2DS35y4Tm3/b2O3wc 7kjlYGizy63ysqCZNLfGZkHVOgN56bg= X-Google-Smtp-Source: AA6agR7qyPgF7yb/Pe4HHfG+979f3qSqHqGmH6Z4YUmzTJK+aB5DrUKbCk7A99tttekEol5RV6N5Gg== X-Received: by 2002:a05:6808:1d9:b0:344:bb8d:588c with SMTP id x25-20020a05680801d900b00344bb8d588cmr3567472oic.87.1662724680737; Fri, 09 Sep 2022 04:58:00 -0700 (PDT) Received: from [192.168.0.13] ([191.97.187.183]) by smtp.gmail.com with ESMTPSA id h7-20020a4abb87000000b0044b125e5dabsm128167oop.35.2022.09.09.04.57.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Sep 2022 04:58:00 -0700 (PDT) Message-ID: <4c19d019-bb6c-558d-2ae5-3e6e341211bd@gmail.com> Date: Fri, 9 Sep 2022 08:58:00 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: From: James Almer In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH] swresample/swresample: fix assert failure 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: I sent an alternative approach last night. On 9/9/2022 3:20 PM, Zhao Zhili wrote: > From: Zhao Zhili > > Fix #9908. Regression since 8a5896ec1f6. > > Signed-off-by: Zhao Zhili > --- > libswresample/swresample.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libswresample/swresample.c b/libswresample/swresample.c > index 6f04d130d3..624309c2a0 100644 > --- a/libswresample/swresample.c > +++ b/libswresample/swresample.c > @@ -265,12 +265,14 @@ av_cold int swr_init(struct SwrContext *s){ > av_channel_layout_describe(&s->in_ch_layout, l1, sizeof(l1)); > av_log(s, AV_LOG_WARNING, "Input channel layout \"%s\" is invalid or unsupported.\n", l1); > av_channel_layout_uninit(&s->in_ch_layout); > + s->in.ch_count = 0; > } > > if (!av_channel_layout_check(&s->out_ch_layout) || s->out_ch_layout.nb_channels > SWR_CH_MAX) { > av_channel_layout_describe(&s->out_ch_layout, l2, sizeof(l2)); > av_log(s, AV_LOG_WARNING, "Output channel layout \"%s\" is invalid or unsupported.\n", l2); > av_channel_layout_uninit(&s->out_ch_layout); > + s->out.ch_count = 0; > } > > switch(s->engine){ _______________________________________________ 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".