• Max Kellermann's avatar
    oggvorbis: don't detect OGG header if stream is not seekable · a1b430cb
    Max Kellermann authored
    If the input stream is not seekable, the try_decode() function
    consumes valuable data, which is not available to the decode()
    function anymore.  This means that the decode() function does not
    parse the header correctly.  Better skip the detection if we cannot
    seek.  Or implement better buffering, something like unread() or
    buffered rewind().
    a1b430cb
oggvorbis_plugin.c 9.65 KB