On Fri, Dec 18, 2015 at 9:45 PM, Ganesh Ajjanagadde
<gajjanaga...@gmail.com> wrote:
> llrint is at least as fast, and better accuracy wise.
>
> Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@gmail.com>
> ---
>  libavfilter/vf_drawtext.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
> index fc77be4..d5770ad 100644
> --- a/libavfilter/vf_drawtext.c
> +++ b/libavfilter/vf_drawtext.c
> @@ -812,7 +812,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 = '-';
> --
> 2.6.4
>

pushed
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to