From 88db6c2890a66c557dcb372c030bbebb955eeb48 Mon Sep 17 00:00:00 2001 From: Alex Agranovsky Date: Mon, 26 Sep 2016 16:23:45 -0400 Subject: avfilter/vf_drawtext: fixed default/flt formatting ignoring offset parameter Signed-off-by: Alex Agranovsky Signed-off-by: Michael Niedermayer --- libavfilter/vf_drawtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 65d3baa..331d6b9 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, " ??:??:??.???"); -- cgit v1.1