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 7B8BD474C2 for ; Sun, 10 Dec 2023 00:33:25 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 60E4968D0A7; Sun, 10 Dec 2023 02:33:23 +0200 (EET) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3EA2468CEE2 for ; Sun, 10 Dec 2023 02:33:17 +0200 (EET) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-33340c50af9so3454381f8f.3 for ; Sat, 09 Dec 2023 16:33:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702168396; x=1702773196; darn=ffmpeg.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=o0uAPol18/wQq4RBQbONDE41V3PLbl3w07NJWR7LKaw=; b=RVbk1uymZ0eiuo98Bap6CmNceWYNTWxccoP7wp9ccA0RR+XEDicpmKxmFgYLv1FPuL 8bgeolrUZ2jvFBanzF7vG7qiMkJkamSviZXYIpAcjNZLxtL18bF1wXykSHEXIhVCz5wa z/kASxpJIve7Yz4Du2CzMbWSN8nJx3KDd0x+oktny0jfEXdbglZk6/gH/oFMgrvQF+6n 5O0MvsWJermRc4uZAPRlGc+DlVBkr71j2AGB3sbakbUw41LIo6Zcjd33ItRAqgbsXGkq WVdlDpLIdX/zopIiPw6eOhNP++DMsA+yVoWdDBmDpysCJ51OBlKl4uK6RzkdF5qXrjIe fbnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702168396; x=1702773196; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=o0uAPol18/wQq4RBQbONDE41V3PLbl3w07NJWR7LKaw=; b=IzCHQEJFDwXohNyqAX713efXghnyrR662pYS6R7FxebQJMFTVlUvb2vxP4UhVSTztj qsI6Z4iRCMtW2KmARIEsWIjx/QBjPNItUIppspiC6ea8TrY6nkAGXtOxndvmGsNUYTmC CpXrdMHP4FBloj/QlNvpDzDF70ErmjazEUmtLABFjwsyd5q8uQVg2httFRACB2oV/tR0 ROVTcYdtmbqTZTN+ZDOsvZenQcMsfnyAGLI1Fbm/xQ0apImp3CCWE6bZsjXPDMI2Pp3z SsYutvobtw1h99MJHP0iJ7H3VkNPtvzxhlmNh9J2qgQ3I1k1K6TbTsauKVyuk5EBHDH5 monQ== X-Gm-Message-State: AOJu0YyzTQP6Vzy8dtUlCIFEsSnZWbolooBTLrhXsl3hZuy0cNLVD6B6 IRuksGr6siexT0m9ObhHadSAtZ0dsCA= X-Google-Smtp-Source: AGHT+IEIcivPiHnckZa2r5dy1u4pI0vMWvw7RSwuTQ8Oqa7g4GrP7wnzpP9izf7u8yH6n5TN3uhTig== X-Received: by 2002:a5d:49ce:0:b0:333:2fd2:3bdc with SMTP id t14-20020a5d49ce000000b003332fd23bdcmr693674wrs.149.1702168395634; Sat, 09 Dec 2023 16:33:15 -0800 (PST) Received: from mariano (dynamic-adsl-84-220-189-10.clienti.tiscali.it. [84.220.189.10]) by smtp.gmail.com with ESMTPSA id e7-20020a5d5947000000b003335e67e574sm5282912wri.78.2023.12.09.16.33.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 16:33:14 -0800 (PST) Received: by mariano (Postfix, from userid 1000) id 66F7BBFCDA; Sun, 10 Dec 2023 01:33:13 +0100 (CET) Date: Sun, 10 Dec 2023 01:33:13 +0100 From: Stefano Sabatini To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches References: <20231208073543.1907-1-ffmpeg@gyani.pro> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231208073543.1907-1-ffmpeg@gyani.pro> User-Agent: Mutt/2.1.4 (2021-12-11) Subject: Re: [FFmpeg-devel] [PATCH] avfilter/select: initialize prev_selected_n to NAN 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: On date Friday 2023-12-08 13:05:43 +0530, Gyan Doshi wrote: > As per the doc, prev_selected_n should be NAN at the start. > However, this was never set. > --- > libavfilter/f_select.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c > index 47e36f0014..109dae403a 100644 > --- a/libavfilter/f_select.c > +++ b/libavfilter/f_select.c > @@ -230,6 +230,7 @@ static int config_input(AVFilterLink *inlink) > > select->var_values[VAR_N] = 0.0; > select->var_values[VAR_SELECTED_N] = 0.0; > + select->var_values[VAR_PREV_SELECTED_N] = NAN; Should be good but move it closer to the other VAR_PREV_* definitions. _______________________________________________ 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".