Skip to content
  • Wim Taymans's avatar
    oggdemux: fix abuse of ogg API, handle broken oggs · 7e43c107
    Wim Taymans authored
    When we feed the ogg sync layer, we need to feed it contiguous data even if the
    sync layer did not consume all of it yet. This makes sure that it always finds
    the next page even for more corrupted files. Use a different read_offset for
    this purpose. since we now keep track of the sync layer, we don't have to reset
    after finding a start of a page.
    
    Add some more debug info for the error paths.
    
    Only reset the sync layer when we perform a seek operation.
    
    Avoid failure when the next chain has no bos pages but instead simply ignore it.
    
    when we receive unknown page serial numbers mid stream, don't fail but post a
    warning and hope that we get back on track later.
    
    Fixes #579642
    7e43c107