• Max Kellermann's avatar
    input/buffered: fix bogus offset after Seek() · c8e6f50d
    Max Kellermann authored
    Instead of copying the offset from our `input`, copy the requested
    offset to our `offset` attribute.
    
    By the time Seek() finishes, our input's offset may have advanced
    already, having read some more data, thus giving us a bogus offset.
    
    This fixes spurious decoder failues (closes #320).
    c8e6f50d
BufferedInputStream.cxx 4.26 KB