[FFmpeg-devel] [PATCH] avfilter/vf_drawtext: fixed default/flt formatting ignoring offset parameter
Alexander Agranovsky
alex at sighthound.com
Mon Sep 26 23:36:01 EEST 2016
-------------- next part --------------
From 9f183abbdde7fa50b9425165dd792d2770098749 Mon Sep 17 00:00:00 2001
From: Alex Agranovsky <alex at sighthound.com>
Date: Mon, 26 Sep 2016 16:23:45 -0400
Subject: [PATCH] avfilter/vf_drawtext: fixed default/flt formatting ignoring offset parameter
Signed-off-by: Alex Agranovsky <alex at sighthound.com>
---
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 214aef0..489db40 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, " ??:??:??.???");
--
2.5.4 (Apple Git-61)
More information about the ffmpeg-devel
mailing list