aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Agranovsky <alex@sighthound.com>2016-09-26 16:23:45 -0400
committerMichael Niedermayer <michael@niedermayer.cc>2016-11-06 23:02:38 +0100
commit88db6c2890a66c557dcb372c030bbebb955eeb48 (patch)
treeb6b199d13dc7740dee964d0aaf84dddffacb6cf6
parent2d72ea68f0edb72d96ec44bf50a1994cadc65f4c (diff)
downloadffmpeg-88db6c2890a66c557dcb372c030bbebb955eeb48.tar.gz
avfilter/vf_drawtext: fixed default/flt formatting ignoring offset parameter
Signed-off-by: Alex Agranovsky <alex@sighthound.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/vf_drawtext.c2
1 files changed, 1 insertions, 1 deletions
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, " ??:??:??.???");