OSDN Git Service

vorbisdec: Fix floor1 decoding
authorGregory Maxwell <greg@xiph.org>
Fri, 12 Nov 2010 04:33:26 +0000 (04:33 +0000)
committerAlex Converse <alex.converse@gmail.com>
Fri, 12 Nov 2010 04:33:26 +0000 (04:33 +0000)
commit8455e8c7c0ad183e8904e583def669ba4b7b4c90
tree29a3be3c8be9cd555996d7c9b898aa0f8b5bc995
parent668673f10ce225d26a96f1aeb62066e8c641c85a
vorbisdec: Fix floor1 decoding

An intermediate value in the floor 1 linear interpolation was
overflowing
resulting in obvious artifacts on some files.

e.g.
http://upload.wikimedia.org/wikipedia/commons/7/79/Big_Buck_Bunny_small.ogv

Prior to this fix 87 out of 128 64kbit/s mono files decoded with ffmpeg
have
lower PEAQ ODG values than the same files decoded with libvorbis. With
this
fix none of that set have significantly worse ODG values than libvorbis.

Fixes issue 2352

Patch by Gregory Maxwell <greg@xiph.org>

Originally committed as revision 25724 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vorbis_dec.c