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
Showing with 11 additions and 12 deletions