]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commit
Fix for issue #829 ("ffvorbis outputs crackling sound, libvorbis plays fine")
authorserge <serge@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 14 May 2009 06:38:49 +0000 (06:38 +0000)
committerserge <serge@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 14 May 2009 06:38:49 +0000 (06:38 +0000)
commit26aab11034ceecf262aa0b208a0f8c7ae6a52197
tree621d55c9cd4bae27e6c1d979c9f399b8a1e48639
parentbc28882399409e6baae0e2789f544f32b2bf3da7
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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18821 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
libavcodec/vorbis_dec.c