Commit ff1442a5 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavfi/vf_drawtext: replace round by llrint

llrint is at least as fast, and avoids an implicit cast.
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 7af14b37
...@@ -814,7 +814,7 @@ static int func_pts(AVFilterContext *ctx, AVBPrint *bp, ...@@ -814,7 +814,7 @@ static int func_pts(AVFilterContext *ctx, AVBPrint *bp,
if (isnan(pts)) { if (isnan(pts)) {
av_bprintf(bp, " ??:??:??.???"); av_bprintf(bp, " ??:??:??.???");
} else { } else {
int64_t ms = round(pts * 1000); int64_t ms = llrint(pts * 1000);
char sign = ' '; char sign = ' ';
if (ms < 0) { if (ms < 0) {
sign = '-'; sign = '-';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment