Change FIX15() back to clipping to -32767..32767.
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 21 Dec 2010 21:18:58 +0000 (21:18 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Tue, 21 Dec 2010 21:18:58 +0000 (21:18 +0000)
commit295ab2af6ef556c37633fc2004ec6b434dcc0113
tree68ae2d27329dadc9c48275688d392c6c1f1a6042
parentf9f69028af9f09bd56a1c07f60a42643860e97c4
Change FIX15() back to clipping to -32767..32767.
This avoids a 16-bit overflow in mdct512() due to a -32768 value in costab.
References updated for acodec-ac3, lavf-rm, and seek-ac3_rm tests.
Thanks to Måns Rullgård for finding the bug.

Originally committed as revision 26071 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ac3enc.c
tests/ref/acodec/ac3
tests/ref/lavf/rm
tests/ref/seek/ac3_rm