llrint is at least as fast, and avoids an implicit cast.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
... | ... |
@@ -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 = '-'; |