Commit 43fab7aa authored by Stefano Sabatini's avatar Stefano Sabatini

vf_select: check for isnan when setting t from pts

parent 298fccad
...@@ -189,7 +189,7 @@ static int select_frame(AVFilterContext *ctx, AVFilterBufferRef *picref) ...@@ -189,7 +189,7 @@ static int select_frame(AVFilterContext *ctx, AVFilterBufferRef *picref)
select->var_values[VAR_START_T] = TS2D(picref->pts) * av_q2d(inlink->time_base); select->var_values[VAR_START_T] = TS2D(picref->pts) * av_q2d(inlink->time_base);
select->var_values[VAR_PTS] = TS2D(picref->pts); select->var_values[VAR_PTS] = TS2D(picref->pts);
select->var_values[VAR_T ] = picref->pts * av_q2d(inlink->time_base); select->var_values[VAR_T ] = TS2D(picref->pts) * av_q2d(inlink->time_base);
select->var_values[VAR_POS] = picref->pos == -1 ? NAN : picref->pos; select->var_values[VAR_POS] = picref->pos == -1 ? NAN : picref->pos;
select->var_values[VAR_PREV_PTS] = TS2D(picref ->pts); select->var_values[VAR_PREV_PTS] = TS2D(picref ->pts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment