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>
pull/167/head
Ganesh Ajjanagadde 9 years ago
parent 7af14b3726
commit ff1442a51d
  1. 2
      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 = '-';

Loading…
Cancel
Save