replace brute force find_optimal_param() with a closed-form solution.
authorLoren Merritt <lorenm@u.washington.edu>
Sat, 29 Sep 2007 05:41:27 +0000 (05:41 +0000)
committerLoren Merritt <lorenm@u.washington.edu>
Sat, 29 Sep 2007 05:41:27 +0000 (05:41 +0000)
commit14bd2a9f25fc0de4fb1a2d4afaef09162c51bb35
tree83c7e0dc6971c767b00d046fd43a733d39c98ef9
parentf6215b1b069680a782ca28058b3ec6d9bb4a45e1
replace brute force find_optimal_param() with a closed-form solution.
overall flac encoding: 4-15% faster.
output is not identical to the previous algorithm due to occasional rounding
errors, but the differece is less than .0005% bitrate.

Originally committed as revision 10612 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/flacenc.c