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
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc