diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-16 22:39:37 +0300 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-21 19:18:12 +0300 |
commit | ff1442a51ddc3e078833f969d4188e737aa116ed (patch) | |
tree | 3ad841f61ebf966eb24a8189e173f22cac252aaa /libavfilter/vf_drawtext.c | |
parent | 7af14b37260d4923cdd75c8a19d6a82dad7470c4 (diff) |
lavfi/vf_drawtext: replace round by llrint
llrint is at least as fast, and avoids an implicit cast.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/vf_drawtext.c')
-rw-r--r-- | libavfilter/vf_drawtext.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 = '-'; |