[FFmpeg-soc] [soc]: r1965 - aac/aac.c

Aurelien Jacobs aurel at gnuage.org
Wed Mar 5 13:50:09 CET 2008


andoma wrote:

> Author: andoma
> Date: Wed Mar  5 13:42:28 2008
> New Revision: 1965
> 
> Log:
> Move LTP_ROUND() close to where it's used. 
> 
> Part of LTP conditional compilation.
> 
> 
> [...]
>  
> +
> +/**
> + * @todo: Replace this with float_to_int16()
> + */
> +static inline int16_t LTP_ROUND(float x) {

Not related to this commit, but all uppercase function names
are ugly.

> +    if (x >= 0)

I don't really see the point of this test.

> +    {
> +        if (x >= 1.0f)
> +            return 32767;
> +    } else {
> +        if (x <= -1.0f)
> +            return -32768;
> +    }

Aurel



More information about the FFmpeg-soc mailing list