[CELT-dev] Possible bug in "pitch_downsample"

Jean-Marc Valin jmvalin at jmvalin.ca
Tue Nov 16 07:56:47 PST 2010


Good catch! Thanks for going through my code and finding these kinds  
of errors.

     Jean-Marc

John Ridges <jridges at masque.com> a écrit :

> Hi Jean-Marc,
>
> I could be way off base here, but it seems to me that line 115 in
> pitch.c in the function "pitch_downsample":
>
>        x_lp[i] =
> SHR32(HALF32(HALF32(x[1][(2*i-1)]+x[1][(2*i+1)])+x[1][2*i]), SIG_SHIFT+2);
>
> should actually be:
>
>        x_lp[i] +=
> SHR32(HALF32(HALF32(x[1][(2*i-1)]+x[1][(2*i+1)])+x[1][2*i]), SIG_SHIFT+2);
>
> Sorry if I'm totally misreading things and just wasting your time.
>
> Cheers,
>
> John Ridges
>
>
> _______________________________________________
> celt-dev mailing list
> celt-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/celt-dev
>
>






More information about the celt-dev mailing list