• Martin Storsjö's avatar
    adpcm: Skip samples whose ssd calculation has wrapped around · cfff297d
    Martin Storsjö authored
    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
    cfff297d
adpcm.c 65 KB