From 43fab7aafc3efc3d88e23a1ba27b939be09b3bd3 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 11 Aug 2011 15:42:05 +0200 Subject: [PATCH] vf_select: check for isnan when setting t from pts --- libavfilter/vf_select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_select.c b/libavfilter/vf_select.c index 455e177fc..3cd2347fa 100644 --- a/libavfilter/vf_select.c +++ b/libavfilter/vf_select.c @@ -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_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_PREV_PTS] = TS2D(picref ->pts); -- 2.11.0