mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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>
This commit is contained in:
parent
2d72ea68f0
commit
88db6c2890
@ -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, " ??:??:??.???");
|
||||
|
Loading…
Reference in New Issue
Block a user