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 = '-';