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 07E1347FF9 for ; Fri, 8 Dec 2023 07:36:11 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F15F968CFD8; Fri, 8 Dec 2023 09:36:08 +0200 (EET) 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 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: 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); -- 2.39.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".