1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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.
This commit is contained in:
Gyan Doshi 2023-12-08 13:01:04 +05:30
parent 715e5e3e23
commit b9fd3e7a88

View File

@ -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;