[FFmpeg-cvslog] vf_select: check for isnan when setting t from pts
Stefano Sabatini
git at videolan.org
Thu Aug 11 16:09:10 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Thu Aug 11 15:42:05 2011 +0200| [43fab7aafc3efc3d88e23a1ba27b939be09b3bd3] | committer: Stefano Sabatini
vf_select: check for isnan when setting t from pts
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=43fab7aafc3efc3d88e23a1ba27b939be09b3bd3
---
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 455e177..3cd2347 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);
More information about the ffmpeg-cvslog
mailing list