From patchwork Fri Dec 8 07:35:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyan Doshi X-Patchwork-Id: 44977 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:1225:b0:181:818d:5e7f with SMTP id v37csp1123703pzf; Thu, 7 Dec 2023 23:36:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgLyl1c9tfFZYvwd72Eyzd4/r5xJvkm3raLcyX2pRl6vxP5khDI+fDqZfSKlJRxcMBbfLa X-Received: by 2002:a17:907:9705:b0:a00:211c:9a9a with SMTP id jg5-20020a170907970500b00a00211c9a9amr5022039ejc.5.1702020973318; Thu, 07 Dec 2023 23:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702020973; cv=none; d=google.com; s=arc-20160816; b=x/d+oOrcTxCP6iY5ZwxdK7Se46BGa129itP0apRWShym9/rttYBcqZqmGWElm7YStW o6EBETB8EiGMjFQlNWOchW9ugfDPmpVngDzqTkObGOKw5Hx7R/0UZSDfZYWfZUu255Fy 8YLpqoNNxqNS9M+kEoxLJiqpPV280RZHEPcgXq0wDhgj3VFqQWxqYupBU4yxXAuCeZAQ la9Qw6WYrsQLeqQNKk9JadAWWGaFYtmKN2fWL1Uno0NRO4uw9ScpsuWEPNR0tVFsY9HA Bodf/IGKtgHPv2k1tuMmutbR+bybeJ3khNPNNGo6DCP2gDIYtqzw9yoUwrIjQfOODeNi Mk0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=nLOrD8NZzNe8lUE+iyKms6bi5d4XBaiH914HXpsPfaQ=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=zmyCw5pyw3XZGTEXzFiqtwHTajh1T3JKCrjikeNddN4HaGZXaO8HjddG/IIkzm0b+5 T5a83frN6apqpvXmMqJnizCO7Qg2IOIKT4ZWHc3clrEGnmhzs8pwVzSSXHJMMAXmDd2f JPmYaTTTfuzy816CRcSMqPHEw+sI6IgCCo/HW99N4T36FA8+WF1t8vlQYMhPgP70X+xn 4VeaGNZVNlHrf6qeW/auNqVs6iLTyBxWDqbfEFJ9rCipeIlm9hPEBxU02BYKNICPR0a/ 4EJHQfm5Zk+F6sn227w+xP3Qu62lloi+m6xRAHL+23xZYSGIjJOm+zdKx5Q3KToMSgIX GeBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id p27-20020a1709060e9b00b00a1cfa7e0d36si560607ejf.32.2023.12.07.23.36.12; Thu, 07 Dec 2023 23:36:13 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3078568CFEF; Fri, 8 Dec 2023 09:36:09 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B6EC768CF34 for ; Fri, 8 Dec 2023 09:36:02 +0200 (EET) Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4SmjcJ3Pd4z9slr for ; Fri, 8 Dec 2023 08:36:00 +0100 (CET) From: Gyan Doshi To: ffmpeg-devel@ffmpeg.org Date: Fri, 8 Dec 2023 13:05:43 +0530 Message-Id: <20231208073543.1907-1-ffmpeg@gyani.pro> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4SmjcJ3Pd4z9slr Subject: [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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: ImbTnHPj5mbP 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; select->var_values[VAR_TB] = av_q2d(inlink->time_base);