[CELT-dev] Possible bug in "pitch_downsample"

John Ridges jridges at masque.com
Tue Nov 16 06:26:08 PST 2010


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





More information about the celt-dev mailing list