# HG changeset patch # User serge # Date 1242283129 0 # Node ID ccb862ffe15a153a5e231e818a27be93eda5842f # Parent cbd09311872d4e3582ce6ea86ad342ed29052f76 Fix for issue #829 ("ffvorbis outputs crackling sound, libvorbis plays fine") This was off-by-one bug which affects floor0 encoded files. Tracked down by valgrind (was reported as the use of uninitialized memory). With this patch applied, tiny_psnr now reports the following when ffvorbis is compared to libvorbis-1.0beta4 output for 'lsp-test.ogg' sample: stddev: 0.76 PSNR: 98.69 bytes: 3498380/ 3498452 Output from libvorbis-1.2 is substantially different: stddev: 132.57 PSNR: 53.87 bytes: 3498424/ 3498496 diff -r cbd09311872d -r ccb862ffe15a vorbis_dec.c --- a/vorbis_dec.c Thu May 14 03:37:58 2009 +0000 +++ b/vorbis_dec.c Thu May 14 06:38:49 2009 +0000 @@ -1054,7 +1054,7 @@ float two_cos_w=2.0f*cos(wstep*iter_cond); // needed all times /* similar part for the q and p products */ - for(j=0;j