diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 65d3baafef..331d6b92a8 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -809,7 +809,7 @@ static int func_pts(AVFilterContext *ctx, AVBPrint *bp, pts += (double)delta / AV_TIME_BASE; } if (!strcmp(fmt, "flt")) { - av_bprintf(bp, "%.6f", s->var_values[VAR_T]); + av_bprintf(bp, "%.6f", pts); } else if (!strcmp(fmt, "hms")) { if (isnan(pts)) { av_bprintf(bp, " ??:??:??.???");