Browse code

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>

Ganesh Ajjanagadde authored on 2015/12/17 04:39:37
Showing 1 changed files
... ...
@@ -814,7 +814,7 @@ static int func_pts(AVFilterContext *ctx, AVBPrint *bp,
814 814
         if (isnan(pts)) {
815 815
             av_bprintf(bp, " ??:??:??.???");
816 816
         } else {
817
-            int64_t ms = round(pts * 1000);
817
+            int64_t ms = llrint(pts * 1000);
818 818
             char sign = ' ';
819 819
             if (ms < 0) {
820 820
                 sign = '-';