[FFmpeg-cvslog] lavfi/vf_drawtext: replace round by llrint

Ganesh Ajjanagadde git at videolan.org
Mon Dec 21 17:31:46 CET 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Wed Dec 16 14:39:37 2015 -0500| [ff1442a51ddc3e078833f969d4188e737aa116ed] | committer: Ganesh Ajjanagadde

lavfi/vf_drawtext: replace round by llrint

llrint is at least as fast, and avoids an implicit cast.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

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

 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 600098f..e96bfb6 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 = '-';



More information about the ffmpeg-cvslog mailing list