Commit 88db6c28 authored by Alex Agranovsky's avatar Alex Agranovsky Committed by Michael Niedermayer

avfilter/vf_drawtext: fixed default/flt formatting ignoring offset parameter

Signed-off-by: 's avatarAlex Agranovsky <alex@sighthound.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 2d72ea68
......@@ -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, " ??:??:??.???");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment