[FFmpeg-cvslog] lavfi/drawtext: Fix microsecond display.

Carl Eugen Hoyos git at videolan.org
Sun Jan 3 22:58:18 CET 2016


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Jan  3 22:55:31 2016 +0100| [ae9f2e6f2813ab78b7b4e11ac80dd1a2abec5c25] | committer: Carl Eugen Hoyos

lavfi/drawtext: Fix microsecond display.

Fixes ticket #4792.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ae9f2e6f2813ab78b7b4e11ac80dd1a2abec5c25
---

 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 e96bfb6..1ef3ecb 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -824,7 +824,7 @@ static int func_pts(AVFilterContext *ctx, AVBPrint *bp,
                        (int)(ms / (60 * 60 * 1000)),
                        (int)(ms / (60 * 1000)) % 60,
                        (int)(ms / 1000) % 60,
-                       (int)ms % 1000);
+                       (int)(ms % 1000));
         }
     } else if (!strcmp(fmt, "localtime") ||
                !strcmp(fmt, "gmtime")) {



More information about the ffmpeg-cvslog mailing list