Skip to content
  • Monty Montgomery's avatar
    flacdec: Correct sample number rounding resulting in timestamp jitter · 799c8e3d
    Monty Montgomery authored
    flacdec converts the src timestamp to a sample number, uses that internally, then reconverts the sample number to a timestamp for the output buffer.  Unfortunately, sample numbers can't be represented in an integer number of nanoseconds, and the conversion process was truncating rather than rounding, resulting in sample numbers and output timestamps that were often off by a full sample.
    
    This corrects the time->sample convesion
    799c8e3d