[FFmpeg-devel] [PATCH] avutil/eval: add sgn()

James Darnley james.darnley at gmail.com
Sat Oct 12 12:42:32 EEST 2019


On 2019-10-11 21:45, Paul B Mahol wrote:

> diff --git a/doc/utils.texi b/doc/utils.texi
> index d55dd315c3..4e2e713505 100644
> --- a/doc/utils.texi
> +++ b/doc/utils.texi
> @@ -920,6 +920,9 @@ corresponding input value will be returned.
>  @item round(expr)
>  Round the value of expression @var{expr} to the nearest integer. For example, "round(1.5)" is "2.0".
>  
> + at item sgn(x)
> +Compute sign of @var{x}.
> +
>  @item sin(x)
>  Compute sine of @var{x}.
>  

Too late now but, since we have round() just above it which is 5 chars,
couldn't you have made this sign()?



More information about the ffmpeg-devel mailing list