diff options
author | Martin Storsjö <martin@martin.st> | 2010-12-01 08:57:45 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-12-01 08:57:45 +0000 |
commit | cfff297d9890a43a51b2f3f0efbfcdd12964b5fe (patch) | |
tree | 1a227363a3d34fea4b8a1306f6e90d86ba41844d /libavcodec/cga_data.c | |
parent | a42bb9d624b6a08242d4227ed121dda5f98ecded (diff) | |
download | ffmpeg-cfff297d9890a43a51b2f3f0efbfcdd12964b5fe.tar.gz |
adpcm: Skip samples whose ssd calculation has wrapped around
Wraparound in ssd is mainly avoided by subtracting the ssd of the
best node from all the others once it has grown large enough.
If using very large trellis sizes (e.g. -trellis 15), the frontier
is so large that the difference between the best and the worst is
large enough to cause wraparound, even if the ssd of the best one
is subtracted regularly.
When using -trellis 10 on a 30 second sample, this causes only a slight
slowdown, from 61 to 64 seconds.
Originally committed as revision 25858 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cga_data.c')
0 files changed, 0 insertions, 0 deletions