On Mon, Feb 09, 2015 at 06:51:33PM +0100, Peter Meerwald wrote:
> --- a/libavcodec/g722.c
> +++ b/libavcodec/g722.c
> @@ -71,6 +71,35 @@ const int16_t ff_g722_low_inv_quant6[64] = {
>  
> +static inline void s_zero(int cur_diff, struct G722Band *band) {
> +    int s_zero = 0;

K&R has the opening { on the next line for function definitions.

> +    #define ACCUM(k, x, d) do { \
> +            int tmp = x; \
> +            band->zero_mem[k] = ((band->zero_mem[k]*255) >> 8) + \
> +               d*((band->diff_mem[k]^cur_diff) < 0 ? -128 : 128); \
> +            band->diff_mem[k] = tmp; \
> +            s_zero += (tmp * band->zero_mem[k]) >> 15; \
> +        } while (0)

spaces around *

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to