Skip to content
  • Robert Swain's avatar
    qtdemux: Round timestamp up when scaling to mov format · 50273537
    Robert Swain authored
    Fix timestamp rounding to allow the correct index to be located.
    
    The issue was that scaling from GStreamer time format to mov time format was
    rounding down causing the timestamp of the newsegment event received after a
    flushing keyframe seek to find the sample index before the one it should
    causing further backward seeking to the keyframe prior until no rounding error
    occurred.
    
    Rounding up when scaling to mov format has the desired effect, and it is
    not clear whether just the _round () variant would be sufficient.
    
    Fixes bug #619105
    50273537