diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-11 17:42:05 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-11 18:09:15 +0400 |
commit | 43fab7aafc3efc3d88e23a1ba27b939be09b3bd3 (patch) | |
tree | 5dbe90676bb907bc674c53ee33324553d0b6ce9e /libavfilter/vf_select.c | |
parent | 298fccad2150e6d764090c47f9515b72d304cf52 (diff) |
vf_select: check for isnan when setting t from pts
Diffstat (limited to 'libavfilter/vf_select.c')
-rw-r--r-- | libavfilter/vf_select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_select.c b/libavfilter/vf_select.c index 455e177fc0..3cd2347fa4 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); |