[FFmpeg-devel] [PATCH] checkasm/vp9dsp: Fix iszero() to read the correct data

Ronald S. Bultje rsbultje at gmail.com
Mon Sep 28 19:53:57 CEST 2015


Hi,

On Mon, Sep 28, 2015 at 12:54 PM, Henrik Gramner <henrik at gramner.com> wrote:

> ---
>  tests/checkasm/vp9dsp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/checkasm/vp9dsp.c b/tests/checkasm/vp9dsp.c
> index 5ec4038..37a3ca6 100644
> --- a/tests/checkasm/vp9dsp.c
> +++ b/tests/checkasm/vp9dsp.c
> @@ -297,7 +297,7 @@ static int iszero(const int16_t *c, int sz)
>  {
>      int n;
>
> -    for (n = 0; n < sz; n += 4)
> +    for (n = 0; n < sz / sizeof(int16_t); n += 2)
>          if (AV_RN32A(&c[n]))
>              return 0;
>
> --
> 1.9.1


Oops, right, patch ok.

Ronald


More information about the ffmpeg-devel mailing list