aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/f_select.c
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2023-12-08 13:01:04 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2023-12-10 09:29:50 +0530
commitb9fd3e7a88b326f719bd3c47d0e0cc5a435de428 (patch)
treed7483900d383d8e3509153cf07d045e0cd652f24 /libavfilter/f_select.c
parent715e5e3e238d6369aa1e0cd4a351f90c00966dd2 (diff)
downloadffmpeg-b9fd3e7a88b326f719bd3c47d0e0cc5a435de428.tar.gz
avfilter/select: initialize prev_selected_n to NAN
As per the doc, prev_selected_n should be NAN at the start. However, this was never set.
Diffstat (limited to 'libavfilter/f_select.c')
-rw-r--r--libavfilter/f_select.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/f_select.c b/libavfilter/f_select.c
index 47e36f0014..9b330a0673 100644
--- a/libavfilter/f_select.c
+++ b/libavfilter/f_select.c
@@ -233,6 +233,7 @@ static int config_input(AVFilterLink *inlink)
select->var_values[VAR_TB] = av_q2d(inlink->time_base);
+ select->var_values[VAR_PREV_SELECTED_N] = NAN;
select->var_values[VAR_PREV_PTS] = NAN;
select->var_values[VAR_PREV_SELECTED_PTS] = NAN;
select->var_values[VAR_PREV_SELECTED_T] = NAN;