[FFmpeg-devel] [PATCH]lavfi/drawtext: Fix microsecond display
Carl Eugen Hoyos
cehoyos at ag.or.at
Sun Jan 3 14:00:58 CET 2016
Hi!
Attached patch fixes ticket #4792 for me, please comment.
Carl Eugen
-------------- next part --------------
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-devel
mailing list