lavfi/drawtext: Fix microsecond display.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 3 Jan 2016 21:55:31 +0000 (22:55 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 3 Jan 2016 21:55:31 +0000 (22:55 +0100)
Fixes ticket #4792.

libavfilter/vf_drawtext.c

index e96bfb6..1ef3ecb 100644 (file)
@@ -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")) {