diff mbox

[FFmpeg-devel] avfilter/vf_drawtext: fixed default/flt formatting ignoring offset parameter

Message ID 57E986B1.3000903@sighthound.com
State Accepted
Commit 88db6c2890a66c557dcb372c030bbebb955eeb48
Headers show

Commit Message

Alexander Agranovsky Sept. 26, 2016, 8:36 p.m. UTC
From 9f183abbdde7fa50b9425165dd792d2770098749 Mon Sep 17 00:00:00 2001
From: Alex Agranovsky <alex@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@sighthound.com>
---
 libavfilter/vf_drawtext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Nov. 6, 2016, 10:16 p.m. UTC | #1
On Mon, Sep 26, 2016 at 04:36:01PM -0400, Alexander Agranovsky wrote:
> 

>  vf_drawtext.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> c20a7bcfcac020dda3970d547556227e2a19e822  0001-avfilter-vf_drawtext-fixed-default-flt-formatting-ig.patch
> From 9f183abbdde7fa50b9425165dd792d2770098749 Mon Sep 17 00:00:00 2001
> From: Alex Agranovsky <alex@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@sighthound.com>

applied

thx

[...]
diff mbox

Patch

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, " ??:??:??.???");