[libav-devel] [PATCH 1/2] ape: Replace memset(0) by zero initialization

Luca Barbato lu_zero at gentoo.org
Fri Jun 20 13:34:40 CEST 2014


On 20/06/14 12:10, Diego Biurrun wrote:
> ---
>  libavcodec/apedec.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
> index 6329295..d759619 100644
> --- a/libavcodec/apedec.c
> +++ b/libavcodec/apedec.c
> @@ -935,10 +935,8 @@ static void long_filter_ehigh_3830(int32_t *buffer, int length)
>  {
>      int i, j;
>      int32_t dotprod, sign;
> -    int32_t coeffs[8], delay[8];
> +    int32_t coeffs[8] = { 0 }, delay[8] = { 0 };
>  
> -    memset(coeffs, 0, sizeof(coeffs));
> -    memset(delay,  0, sizeof(delay));
>      for (i = 0; i < length; i++) {
>          dotprod = 0;
>          sign = APESIGN(buffer[i]);
> 

Ok.


More information about the libav-devel mailing list