From ff1442a51ddc3e078833f969d4188e737aa116ed Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Wed, 16 Dec 2015 14:39:37 -0500 Subject: [PATCH] lavfi/vf_drawtext: replace round by llrint llrint is at least as fast, and avoids an implicit cast. Signed-off-by: Ganesh Ajjanagadde --- 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 600098fe67..e96bfb6675 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -814,7 +814,7 @@ static int func_pts(AVFilterContext *ctx, AVBPrint *bp, if (isnan(pts)) { av_bprintf(bp, " ??:??:??.???"); } else { - int64_t ms = round(pts * 1000); + int64_t ms = llrint(pts * 1000); char sign = ' '; if (ms < 0) { sign = '-';